Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Qualtrics text before and after textbox
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place Your Javascript Below This Line*/
var inputs = $(this.getQuestionContainer()).select('input[type="text"]');
for (var i = 0; i < inputs.length; i++) {
var input = inputs[i];
$(input).insert({before: 'In '});
$(input).insert({after: ' years'});
}
});
@13bzhang

This comment has been minimized.

Copy link
Owner Author

@13bzhang 13bzhang commented Apr 8, 2016

I added "In " before the textbox and " years" after the textbox. Just like this:

In [textbox] years

@ian-a-b

This comment has been minimized.

Copy link

@ian-a-b ian-a-b commented Jun 8, 2017

Thank you for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment