CodeMirror test

 

This javascript code auto-advances the survey when the participant clicks on their response to the multiple-choice question.

Add the following to your Javascript editor in Qualtrics: 

(click the link in upper righthand corner to copy)

 

Qualtrics.SurveyEngine.addOnload(function()
{
	
var that = this;
this.questionclick = function(event,element){
if (element.type == 'radio') {
that.clickNextButton();
	
}
}

});

Qualtrics.SurveyEngine.addOnReady(function()
{

this.hideNextButton();

});

Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/

});

 

 

See it in action:

 

Qualtrics.SurveyEngine.addOnload(function()
{
	
var that = this;
this.questionclick = function(event,element){
if (element.type == 'radio') {
that.clickNextButton();
	
}
}

});

Qualtrics.SurveyEngine.addOnReady(function()
{

this.hideNextButton();

});

Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/

});

 

Leave a Reply

Your email address will not be published. Required fields are marked *