How to auto-advance to end of block without clicking? | XM Community
Skip to main content

HI!
I'm trying to create a 60-minute time limited quiz with a countdown timer display and which will automatically send the user to the End of Survey after 60 minutes has elapsed, even if the user has not answered all questions and without requiring the user to click the Next button. The survey consists of 1 single block of questions. So far I've got pretty much everything working like I want, but when the time limit is reached the user is not immediately taken to the End of Survey, it just remains on the last question page until the user clicks the Next button.
I don't know JavaScript but i've found a lot of help on this forum so far (here , here, and here). I think the solution to my issue is here somewhere but i'm missing it.
For test purposes, I've set the time limit to 60 seconds instead of 60 minutes; i think i know where i need to make changes to increase the limit to 60 minutes. I've added Q_TotalDuration as embedded logic in Survey Flow, added display logic to all questions to display only if Q_TotalDuration is less than 60, and i've added JavaScript to the first question, as in the attachments. What changes do I need to make so that the survey advances to the End of Survey after the time runs out without the user clicking the Next button?
JavaScript.txtdisplay logic.pngsurvey flow.png
Thanks!
Mike

Hi Mike,
I am struggeling with the same problem. Have you found a solution yet?
Thanks and best,
Chiara


This is one simple solution, though a little rough, it should get the work done.
Survey 1 is the one with the questions.
Create another Survey, Survey 2, with just one question and a timer for 60 seconds.
Use an iframe to embedd survey 1 in Survey 2.
If they finish survey 1, you'll get complete responses, if they don't, you'll get their values in the responses in progress of survey 1.



Leave a Reply