Automatic advance to next question after slider response | XM Community
Question

Automatic advance to next question after slider response

  • 12 October 2018
  • 3 replies
  • 80 views

Hi,
for multiple choice questions, I usually use the following code to automatically move to the next question:

Qualtrics.SurveyEngine.addOnload(function()
{
jQuery(".statement-container div").eq(0).append("<span style='float: right;'></span>");
var that = this;
this.questionclick = function(event,element){
if (element.type == 'radio') {
that.clickNextButton();
}
}

However, for sliders this does not work. I have tried replacing "radio" with all types of things including "slider" of course, but it does not work. Any help would be appreciated.

3 replies

Userlevel 7
Badge +27
Slider questions aren't conducive to auto advance because there isn't a good way of knowing when the respondent has finished answering the question. So, I wouldn't recommend doing auto advance on a slider.

If you were to do it, you would need to use a combination of a mousedown event followed by a mouseup event.
Hi Tom. Thank you for your answer. I see this limitation, but I would still like to give it a try. Would you mind helping me adjusting the above code?
Userlevel 7
Badge +27
> @Jk2 said:
> Hi Tom. Thank you for your answer. I see this limitation, but I would still like to give it a try. Would you mind helping me adjusting the above code?

It isn't an adjustment. It is a "throw it out and start over" type of change.

Leave a Reply