How to align text entry? | XM Community
Question

How to align text entry?

  • 22 January 2021
  • 3 replies
  • 122 views

I found this code and managed to align the text entry box with the answer option. Can someone help me add a space and adjust the size of box?

image.png
Qualtrics.SurveyEngine.addOnReady(function()
{
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");

});


3 replies

Userlevel 7
Badge +21

I use the boxed question theme and it seems to have the default as what you are looking for.
image.png

ahmedA Thank you very much. Can you help me where you access this theme of question? Does it affect the survey theme? because I have to follow a brand template.

Userlevel 7
Badge +21

You can access the theme via look and feel - - > old editor - - > advanced - - > change theme.
It may or may not be compatable with your brand template based on how your brand admin has set up the CSS. So you could try it out and see.

Leave a Reply