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

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

  • March 25, 2019
  • 5 replies
  • 165 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.

5 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • March 25, 2019
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
  • March 25, 2019
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 ●●●●●●●●
  • March 25, 2019
> @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
  • March 25, 2019
That works perfectly!! Thank you for your great help!

Forum|alt.badge.img
  • November 30, 2020

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!