Next page on answer click | XM Community
Question

Next page on answer click

  • 26 September 2019
  • 1 reply
  • 64 views

Badge +2
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:
!

1 reply

Userlevel 5
Badge +6
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