How to give a "Don't Know" option? | XM Community
Skip to main content
Solved

How to give a "Don't Know" option?

  • November 10, 2017
  • 4 replies
  • 869 views

Poppy
Qualtrics Employee
  • Qualtrics Employee
  • 24 replies
I have a text entry question but want to give the respondents the option to select "Don't Know" instead of filling it out. I don't see a way to do this in the question options at all - any suggestions?

Best answer by AnthonyR

The best way to set this up is to create a multiple choice question with 2 answers, the first will include a text entry, and the second will be Don't know. Then you can add the following JavaScript to hide the first label, while keeping its text entry box: Qualtrics.SurveyEngine.addOnReady(function () { function hideLabel(element) { if (element.select('input')[0] != null || element.select('textarea')[0] != null) { element.select('label').each(function (a, b) { a.hide(); }); } else { console.log(element); } } var hideLabelsFlag = false function hideLabels() { //QH.hideLabels() - Hides the label for any answer option where a text input has been added. var elements = $$('.LabelWrapper'); elements.each(function (name, index) { hideLabel(name); }); hideLabelsFlag = true; } hideLabels(); });

4 replies

JulieT
Level 3 ●●●
Forum|alt.badge.img+10
  • Level 3 ●●●
  • 72 replies
  • November 15, 2017
Stop! Don't do it Poppy! Qualtrics advises against including a "Don't Know" option and has a great article as reference. https://qualtrics.com/blog/why-including-dont-know-responses-is-hurting-your-survey-data/

Poppy
Qualtrics Employee
  • Author
  • Qualtrics Employee
  • 24 replies
  • November 16, 2017
@JulieT Thanks, Julie! That is great advice, however, my supervisor is pretty adamant that they still want to add a "Don't Know" option. Does anyone know how to do this?

AnthonyR
Level 4 ●●●●
Forum|alt.badge.img+7
  • Level 4 ●●●●
  • 308 replies
  • Answer
  • November 16, 2017
The best way to set this up is to create a multiple choice question with 2 answers, the first will include a text entry, and the second will be Don't know. Then you can add the following JavaScript to hide the first label, while keeping its text entry box: Qualtrics.SurveyEngine.addOnReady(function () { function hideLabel(element) { if (element.select('input')[0] != null || element.select('textarea')[0] != null) { element.select('label').each(function (a, b) { a.hide(); }); } else { console.log(element); } } var hideLabelsFlag = false function hideLabels() { //QH.hideLabels() - Hides the label for any answer option where a text input has been added. var elements = $$('.LabelWrapper'); elements.each(function (name, index) { hideLabel(name); }); hideLabelsFlag = true; } hideLabels(); });

MichelleC
Level 3 ●●●
Forum|alt.badge.img+10
  • Level 3 ●●●
  • 146 replies
  • November 17, 2017
@Poppy, this solution isn't pretty, but it's functional. Create a 2-option Multiple Choice question and have one of them allow text entry. ! I'm not sure how much space a text entry field will allow, but it might work??