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

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!

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");
});


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!!!!


Leave a Reply