Change width of question text in form type question | XM Community
Skip to main content

Hello,

I want to know how to increase the width of the text next to the form entry text box so that the text does not span across so many lines

 

@suchisaha Try to add the JavaScript below to your question and decrease/increase the 60% if necessary. 

Qualtrics.SurveyEngine.addOnload(function()
{
let labels =document.getElementsByClassName("LabelWrapper")
for(let i=0;i < labels.length;i++) { labelsli].parentElement.style.width = "60%"
}
});


thanks . It worked. how will i make the text box size same as the text automatically rather than manually change the size of the text box entry size?


@suchisaha If you define the label with 50% width, the text box should automatically use the other 50%.


Leave a Reply