Hide/replace text box in side by side question by any string | XM Community
Skip to main content

Is there any way or it is possible to hide the text box in the middle or replace the text box in the middle with the string "or", just like the picture attached below.
from this
image.pngTo this
image.png

robi_kalinisan
You can do it in this manner

  • You can include a default choice here "OR"and making text entry of that box to be read only by using the code below and replacing the QID of text box. You can include the below CSS to hide the border and make background white. It would look something like this finally

JS: Qualtrics.SurveyEngine.addOnload(function()
{
jQuery("[id='QR~QID1#2~1~1~TEXT']").attr("readonly",true);
jQuery("[id='QR~QID1#2~1~1~TEXT']").css({"border":"none","background-color":"#fffff"});
});

image.png
Hope this helps!


Deepak oh that's a clever solution! thank you!


Deepak is a coding wizard! 🤩 Thank you so much for this custom code solution!


Leave a Reply