In my survey I have a number of multiple choice questions with an 'other' option. I need to make these text boxes wider to allow for more input. I only want it wider and not longer please.
Thank you
I found this on the web but it doesn't help. I'm assuming it applies to regular text boxes, and not multiple choice text boxes. (Please excuse my ignorance - I am a newbie++)
Qualtrics.SurveyEngine.addOnload(function()
{
function makeBigger(){
var txt = document.getelementbyid('txtbox');
txt.stylee'width'] = '300px';
}
});
Page 1 / 1
PAZ ,
The code you posted specifically looks for an element with the id txtbox. That doesn't match any element Qualtrics uses. Not that it matters because it wouldn't have worked, but you never called the makeBigger function either.
You could do this:
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .InputText").css("width","100%");
});
Thank you TomG.
This works beautifully.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.