How to require response to top level question only in drill down | XM Community
Skip to main content
Solved

How to require response to top level question only in drill down


Forum|alt.badge.img+2

I’m looking for a way to force a response to the top-level question in a drill down, without forcing a response to other levels in the drill down. Any suggestions?

Best answer by Tom_1842

And for a JavaScript option, adding the below to the OnReady section of the question’s JavaScript will disable the next button and only enable it once a selection is made for the first drilldown:

this.disableNextButton();
var that = this;
jQuery("#"+this.questionId+" select").eq(0).on('change', function() {
that.enableNextButton();
});

 

View original

3 replies

vgayraud
QPN Level 5 ●●●●●
Forum|alt.badge.img+48
  • QPN Level 5 ●●●●●
  • 357 replies
  • March 5, 2025

Only way I can think of without javascript would be to add a custom validation that will pass if any of your top-level answer is selected.

Might be painful to set up if you have a lot of top-level answers.


Nanditha MM
Level 4 ●●●●
Forum|alt.badge.img+14
  • Level 4 ●●●●
  • 101 replies
  • March 5, 2025

Hi ​@surrogate-key ,

Forcing a response only at the top level isn't a built-in Qualtrics feature, but you can try with the  workaround with Custom Validation.Then, set a condition to display an error message if the top-level dropdown is left empty. This ensures respondents must select a top-level option while allowing lower levels to remain optional.

For your reference: https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/validation/#CustomValidationMessages

Thank you


Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • 876 replies
  • Answer
  • March 5, 2025

And for a JavaScript option, adding the below to the OnReady section of the question’s JavaScript will disable the next button and only enable it once a selection is made for the first drilldown:

this.disableNextButton();
var that = this;
jQuery("#"+this.questionId+" select").eq(0).on('change', function() {
that.enableNextButton();
});

 


Leave a Reply