Display Text entry field to the right of the question | XM Community
Solved

Display Text entry field to the right of the question

  • 28 September 2018
  • 2 replies
  • 7 views

Badge +3
Hi All - I'm using Multiple Choice question with a text entry, which I need to display to the right of the question. On another post I found a similar post with code that moved the text entry box before the question - I need to flip that order (question then text entry box). Any idea how to alter the code below? Thank you!!
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","unset");
icon

Best answer by TomG 28 September 2018, 22:44

View original

2 replies

Userlevel 7
Badge +33
When you add text entry box for any option it automatically appears on right of the text.
Userlevel 7
Badge +27
@Multimedia_Team - In the last line of code try changing "unset" to "none".

Leave a Reply