Next page on answer click | XM Community
Skip to main content
Hi all,

I'd like to change an answer button to the next button for one question.



Am currently using the code below, but it's not working. The next button is hidden, but it doesn't next when the answer is clicked.





Qualtrics.SurveyEngine.addOnload(function()

{

this.hideNextButton ()

var that = this;

this.questionclick = function(event,element){

if (element.type == 'radio') {

that.clickNextButton();

}

}

});



It's a multiple choice question, with just one answer. Am happy to change the question type if that makes it easier.



Any assistance would be much appreciated!



Screenshot of the question below:

!
Hi @LTaylor ,

try this code:



Qualtrics.SurveyEngine.addOnload(function()

{

this.questionclick = function(event, element) {

if(element.type == "radio") {

this.clickNextButton();

}

}

this.hideNextButton();

this.hidePreviousButton();

});

Leave a Reply