Hiding submit button if multiple choice question not ticked | Experience Community
Skip to main content
Question

Hiding submit button if multiple choice question not ticked

  • March 31, 2026
  • 1 reply
  • 2 views

Forum|alt.badge.img+5

I’m sure this is straightforward but it’s been a while since I used Qualtrics and I can’t quite nail this. I want to hide the next button on a page unless a multiple choice question is selected. It only has one choice and so in effect acts as a checkbox. I found the following code which shows the next button if ticked but cannot get it to hide it again if the question is unticked. Any advice welcome, thanks.

Qualtrics.SurveyEngine.addOnload(function()
{
this.hideNextButton();
this.questionclick = function(event, element) {
if (element.type == 'checkbox') {
var choiceNum = element.id.split('~')[2];
if (choiceNum==1) {this.showNextButton();}
else {this.hideNextButton()}}}
});

 

1 reply

kgillis
Level 6 ●●●●●●
Forum|alt.badge.img+31
  • Level 6 ●●●●●●
  • March 31, 2026

Could you just add in a response requirement on that question - it wouldn’t allow you to submit until the question was answered.