How to add an additional option of a text entry question in Qualtrics? | Experience Community
Skip to main content
Solved

How to add an additional option of a text entry question in Qualtrics?

  • Mar 25, 2019 2:51 PM UTC
  • 5 replies
  • 199 views

Hi everyone, I wondered how to add an option to a text entry question in Qualtrics. ! I appreciate for all your help!

Best answer by TomG

Use a multiple answer multiple choice question with two choices and add "Allow text entry" to the first choice. Add some JavaScript to hide the label of the first choice.
View original

5 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • Mar 25, 2019 3:08 PM UTC
Use a multiple answer multiple choice question with two choices and add "Allow text entry" to the first choice. Add some JavaScript to hide the label of the first choice.

  • Author
  • Mar 25, 2019 4:06 PM UTC
Thanks Tom! This is my first time using JS, and I wondered how to hide the label of the first choice... Thanks again!!

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Mar 25, 2019 6:53 PM UTC
> @Curney said: > Thanks Tom! This is my first time using JS, and I wondered how to hide the label of the first choice... Thanks again!! ``` Qualtrics.SurveyEngine.addOnload(function() { jQuery("#"+this.questionId+" .InputText").prevAll("label").hide(); }); ``` Make the N/A choice exclusive.

  • Author
  • Mar 25, 2019 8:23 PM UTC
That works perfectly!! Thank you for your great help!

Forum|alt.badge.img
  • Nov 30, 2020 5:52 PM UTC

Hi Tom,
thanks for the code. But he is just working for the small text field. If I change the text field size to middle or big it 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!