Auto-advance loop and merge block after 10 minutes | XM Community
Skip to main content

Hi, I was wondering if anyone could help me with an issue I just can't figure out. I am trying to auto-advance a loop and merge block where after 10 minutes of answering questions the user is automatically directed to the next block (without finishing the question they were on).
I have found a lot of useful code in this community so far and seem to have the functionality of the timer working (I've set the timer at 60seconds at the moment for testing purposes). I have attached the code, the embedded data info from survey flow and the display logic from the questions. The issue that I need help with is that every time a new page is shown from the loop and merge block the timer duplicates and starts a new countdown - so for example by the fourth loop there are four timers displayed each with a different countdown time.
Does anyone know how to fix this issue? I am very new to JavaScript so don't know it well enough to figure out what is wrong! Any help would be very much appreciated, thank you!!
Screenshot 2021-12-15 at 15.11.01.pngScreenshot 2021-12-15 at 15.11.23.png
Screenshot 2021-12-15 at 15.09.25.png

Having the same issue here, how did you resolve this? 


Having the same issue here, how did you resolve this? 

Please try this solution if it works for you


Leave a Reply