Hide/replace text box in side by side question by any string | XM Community

Hide/replace text box in side by side question by any string

  • 3 October 2022
  • 3 replies
  • 31 views

Userlevel 1
Badge +2

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


3 replies

Userlevel 7
Badge +36

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!

Userlevel 1
Badge +2

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

Userlevel 4
Badge +16

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

Leave a Reply