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

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!

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.

 


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