Text entry box in a multi-choice question - is it possible to have this beside instead of below? | XM Community
Skip to main content
Solved

Text entry box in a multi-choice question - is it possible to have this beside instead of below?

  • March 17, 2020
  • 3 replies
  • 98 views

I have a multi-choice question with the last option being "Other (please specify)." The text box appears below this text. Is it possible to have the text entry box beside the text instead of below?

Best answer by rondev

Use below code: jQuery("#"+this.questionId+" .TextEntryBox").each(function() { var tb = jQuery(this); tb.css({"float":"none","background-color":"white","width":"50%"}); tb.prev("label").css("display","block").append(" ").append(tb); });

3 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1450 replies
  • Answer
  • March 18, 2020
Use below code: jQuery("#"+this.questionId+" .TextEntryBox").each(function() { var tb = jQuery(this); tb.css({"float":"none","background-color":"white","width":"50%"}); tb.prev("label").css("display","block").append(" ").append(tb); });

Forum|alt.badge.img

This worked for me - thank you for posting!


Mannila
Level 4 ●●●●
Forum|alt.badge.img+14
  • Level 4 ●●●●
  • 41 replies
  • September 1, 2023

@rondev Thanks for the solution you provided. It worked well for both single and multiple answer multiple choice question types. I found it better than other Qualtrics solutions, especially with its easy-to-use text box feature.  One notable advantage is that when you select the text box, the background remains white, making it easy for users to type in.