Solved. Here's the code: Qualtrics.SurveyEngine.addOnload(function() { function startTimer(duration) { var timer = duration; var myTimer = setInterval(function() { Qualtrics.SurveyEngine.setEmbeddedData('timeRemaining', timer); if (--timer < 0) { clearInterval(myTimer); timeOver(); } }, 1000); } var timerSeconds = parseInt("${e://Field/timeRemaining}"); startTimer(timerSeconds); var timeOver = function() { $('NextButton').click(); } });
Hello, the suggested solutions work great. I have one follow-up question: How can you make the timer disappear? That is, is there way to have the timer autoadvance subjects after the time is up but not display the countdown to the participants?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.