Question
after running javascript code on a qualtrics block it doesn't move to the next block
Hi there,
I've coded a decision-making task in javascript and added in the javascript session in quatrics. The javascript code runs perfectly when I select "view block" option or "preview". However, it stops at the end of the script. A blank page is showed instead of "end preview" (if run using "view block" ) or the button to go to the next block (if run with "preview"). It seems qualtrics is not able to proceed to the next page. Even when I add "end survive" after the block, the blank page is still there. I have tried to simulate click on Qualtrics next button using qualtrics JS API. However, none of the solutions I have tried seems to work (function(){qthis.clickNextButton();}).delay(5); jQuery("#NextButton").click() ; setTimeout(function () {jQuery('#NextButton').click();},2000) and so on..). Running on Onload function or on OnReady function don't change anything. Neither hiding the button and showing that again in the end. Any help is really appreciated. I have attached the script below.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
