Show “Next” Button Only After Selecting “Yes, I Agree” on Final Question | Experience Community
Skip to main content
Solved

Show “Next” Button Only After Selecting “Yes, I Agree” on Final Question

  • June 6, 2026
  • 2 replies
  • 23 views

Forum|alt.badge.img+5

Hi everyone,

I was hoping someone could help. I only want the NEXT button to appear when someone has selected option 1 (“Yes, I agree”) on the final question in my block of questions.

I’ve been reading through a few other posts and trying different approaches, but I haven’t managed to get it working yet.

Thank you! 🚀

Best answer by vgayraud

Hi,

Assuming your last question is a MCMA question with 1 choice, you can use the following code. It works both on legacy layouts and NSTE.

Qualtrics.SurveyEngine.addOnReady(function () {

var q = this;

function updateButton() {
var selected = q.getSelectedChoices();
if (selected && selected.indexOf("1") !== -1) {
q.showNextButton();
} else {
q.hideNextButton();
}
}

updateButton();

q.questionclick = function (event, element) {
updateButton();
};

});

 

2 replies

vgayraud
QPN Level 7 ●●●●●●●
Forum|alt.badge.img+65
  • QPN Level 7 ●●●●●●●
  • Answer
  • June 8, 2026

Hi,

Assuming your last question is a MCMA question with 1 choice, you can use the following code. It works both on legacy layouts and NSTE.

Qualtrics.SurveyEngine.addOnReady(function () {

var q = this;

function updateButton() {
var selected = q.getSelectedChoices();
if (selected && selected.indexOf("1") !== -1) {
q.showNextButton();
} else {
q.hideNextButton();
}
}

updateButton();

q.questionclick = function (event, element) {
updateButton();
};

});

 


Forum|alt.badge.img+5
  • Author
  • Level 5 ●●●●●
  • June 8, 2026

Perfect, thanks so much :)