Hello,
I have a survey that has to be a series of matrix tables with 1-3 lines in each. (I know it's an ugly design, unfortunately not my choice!)
To make it a bit clearer in the layout I've put one question per page, but would like it toautoadvance after the selection is made on the last line to save all that clicking.
Can anyone help me with the Javascript to do this? The selection in 'look and feel' doesn't work, and the only script I did find advanced after the first selection, leaving the lower lines incomplete.
Thank you
Page 1 / 1
Hi there, if you still need, I found a thread that I think will be helpful to you. In that, MohammedAli_Rajapkar and TomG provide JS that will do what you are describing. Since it uses setTimeout, use Live links to test it out, not Preview. Below for reference, try adding to the OnReady section of the Matrix question.
jQuery("#"+this.questionId+" td").click(function(){
setTimeout(function(){
if(jQuery(".ChoiceRow").length==jQuery(".q-checked").length)
{
jQuery("#NextButton").click()
}
}, 5);
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.