Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

How to code block to auto advance after 20 minutes?

CogLab Community Member, Qualtrics Brand Admin Qubie ✭

I am administering a standardized test in the middle of my survey but the standardized test is required to have a limit of 20 minutes and each question must be on a separate page. I have read through some of the other pages but am having trouble finding the right code for what I am trying to do. I have some coding experience but not a ton so any advice or ideas would be appreciated. Thank you!


  • w.patrick.gale
    w.patrick.gale Community Member Guru ✭✭
    edited July 2019

    @CogLab , you will need to use javascript to check a timer variable every second, minute, whatever to see if the timer value is greater than 20 minutes. You could use the setInterval function and make sure you save the timer value to piped text to pass between pages in your survey so that it doesn't reset each time you advance to the next survey page. Reference your javascript externally (as opposed inserting it into the question fields, which would leave you with a mess on your hands) unless your entire survey is on one page, in which case you can embed within a question field just as easily.