Auto Advance / Survey Time Limit | XM Community
Question

Auto Advance / Survey Time Limit

  • 13 May 2020
  • 1 reply
  • 67 views

Badge

Hi,
I would like to limit a survey to 5 minutes in total duration. I have 10 questions, and I'd like them each on their own page, and for randomization to happen.
I have attempted to follow the suggestion in the link below. When following this code, I have each question in a separate block, I group the block with the branch, and I randomize the grouped blocks.
https://www.qualtrics.com/community/discussion/692/can-i-set-a-time-limit-for-a-survey
However, this does not auto-advance to the end while someone is working on a question, but only after they hit the next button.
I've also tried to use the code here:
https://www.qualtrics.com/community/discussion/1730/automatically-end-block-with-page-breaks-after-a-fixed-time-limit
I've tried this both with the questions in their own blocks, and with all the questions in the same block using page breaks, but I can't get it work. Also, I'm not sure what the 1000 in the code is for?
Any help would be appreciated!
Many thanks!



1 reply

Userlevel 5
Badge +4

You can achieve this using JS, just capture the total time spent on each question and store the same in one embedded variable. Capture this in header script and using the created embedded variable, you can check the time duration and accordingly implement the auto select functionality based on the total time duration.
Just make sure, you'll have to get the embedded data value first and then implement your calculations and then set again into the same embedded variable.

Leave a Reply