How to hide the button of a text entry question in MC Questions? | XM Community
Question

How to hide the button of a text entry question in MC Questions?

  • 1 December 2020
  • 1 reply
  • 22 views

Badge

Hi everyone, 
i already found this code: 
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .InputText").prevAll("label").hide();
});
which works perfectly für small sized textfields. I want to change the size of de textfield to middle or big, but then the code doesn't work.
Maybe you could tell me how to change the code, so he works for a "middle-sized" text field.
Thank you for your help!


1 reply

Userlevel 7
Badge +21

I would try something like this:
 jQuery("#"+this.questionId+"-"+"{Relevant Answer Choice Number}"+"-label").hide();

This will just hide the label (i.e. the answer choice text) and not the text entry box

Leave a Reply