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

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

  • December 1, 2020
  • 1 reply
  • 19 views

Forum|alt.badge.img

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

PraDeepKotian_XM
QPN Level 5 ●●●●●
Forum|alt.badge.img+21
  • QPN Level 5 ●●●●●
  • December 1, 2020

Hi John9696
replace the .InputText with textarea as below code.
jQuery("#"+this.questionId+" textarea").prevAll("label").hide();