Text box entry beside multiple choice response instead of below | XM Community
Skip to main content
Question

Text box entry beside multiple choice response instead of below

  • July 3, 2025
  • 2 replies
  • 50 views

Forum|alt.badge.img+1

Hi there,

 

I have tried code from some similar questions on here but none are working. I would like the text box to be beside “email:” instead of below. QID is #QID101.

 

I am pulling emails from a contact list so that is why the text box is populated. 

 

Thanks in advance!

2 replies

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • 909 replies
  • July 3, 2025

Looks like you might be using Flat layout. rondev's code from this post is working on my end to do this. Try adding the below to the question's JavaScript:

Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/

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

});

Or, The New Survey Taking Experience does this by default.

 


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 3 replies
  • July 8, 2025

Thank you! This worked now. I had other code that was overriding this code.