Javascript code for auto-advance on matrix format in Qualtrics -


i'm creating survey on qualtrics i'm hoping auto-advance next page after survey taker makes his/her choice on last question of matrix. have javascript code auto-advance after click on single-choice question need edit auto-advance on click of last single-choice question in matrix table:

var = this; this.questionclick = function(event,element){     if (element.type == 'radio')  {        that.clicknextbutton();     } } 

this can done programmatically using 2 more methods api; getchoices() , getselectedchoices(). allows write flexible code work regardless of order in choices selected or how many options presented.

var = this; var choices = this.getchoices( "radio" ).length; this.questionclick = function( event, element ){     var selected = that.getselectedchoices().length;     if ( choices  == selected )  {        that.clicknextbutton();     } } 

we compare number of choices number of answers , progress once each statement has been answered.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -