Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
jQuery("#NextButton").hide();
var x_val=0; // set this variable equal to 0. I know this doesnt work in later local functions. How to define it?
jQuery('#Button').on('click', () => {
var x_val=1; // set this variable equal to 1
});
// after ten seconds, hide timer, show MissServiceMessage
setTimeout(function(){
if (x_val==0){
jQuery("#NextButton").click();
}
}, 10000);
}, 30000);
});
Best answer by ChiragK
View original