Qualtrics.SurveyEngine.addOnReady(function()
{
var that = this;
// change event on a dropdown list
jQuery( "select[name='QR\\~QID11']" ).change(function() _
// only advance if a response is selected
if (jQuery( "select[name='QR\\~QID11']" ).val() != '') _
alert("list option changed"); // testing how many times this change event is fired
that.clickNextButton(); // move to the next page
}
_);
_);
(I had to replace the { and } in the code above with _ otherwise I could not post the code here without a 'You don't have permission to access' error on this forum.)
Anyway, when I tried the code above it fires the change event multiple times when I select an option from a dropdown list. As a result my survey skips ahead more than one page. (when I look at the source code on the survey it seems the change event appears in three different places, but I have it only defined in one question)
Best answer by w.patrick.gale
View original