Placement of text box in anchored "Other" response options | XM Community
Skip to main content
Solved

Placement of text box in anchored "Other" response options

  • November 5, 2020
  • 4 replies
  • 96 views

When selecting "Allow text entry", the text box displays directly below the response option. I would like it to display to the right of the response option. I've searched this site endlessly and cannot find the help I need. Thanks!

Best answer by rondev

Check this post

4 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • November 5, 2020

Check this post


Thanks rondev

I tried adding this code to the javascript, but nothing happened. I have 7 response options, in a multiple answer list, with only a single text entry box for my "other" option. I could not see anything in this code to point that detail out, so I assumed it was not needed.
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
var QID = this.questionId;
var QIDOtherLabel = jQuery("#" + QID).find(".TextEntryBox").siblings().attr("id");
jQuery("[id='" +QIDOtherLabel+"']").append(jQuery("#" + QID).find(".TextEntryBox"));
jQuery("[id='" +QIDOtherLabel+"']").css("padding-top","30px");
jQuery("[id='" +QIDOtherLabel+"']").css("padding-bottom","30px");
jQuery("#" + QID).find(".TextEntryBox").css("float","none");
});


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • November 5, 2020

Try other code on that post i.e. this


Thanks rondev

Turns out I needed to review in Preview to see that the first code worked perfectly. THANKS!!!!