Automatically end block (with page breaks) after a fixed time limit | XM Community
Skip to main content
Solved

Automatically end block (with page breaks) after a fixed time limit

  • August 27, 2018
  • 7 replies
  • 386 views

I am writing in response to this question https://www.qualtrics.com/community/discussion/comment/5568#Comment_5568 I have a similar problem that I am trying to deal with. I have a block of 10 problems, each separated by page breaks. Participants should get 3 minutes to complete all 10 problems. After 3 minutes, they should automatically advance to the next block, even if they haven't gotten to all problems. I do NOT want any timer information displayed to the participant, I just want it advance to the next block after 3 minutes. I tried working with the code displayed above, but it seems a lot of this code deals with displaying the timer to the participant. I am having trouble implementing this - either the autoadvance is failing to occur or it occurs immediately after the first question before the 3 min is up. I was wondering if I could get some specific instructions on how to set up this 3 minute block timer without displaying the timer to the participant. I suspect it should be relatively simple, I just can't seem to implement it!

Best answer by akshay11

Hii @timothygg , Create embedded data before that block with value equal to 180. And add following javascript code on each page. !

7 replies

PeeyushBansal
Level 6 ●●●●●●
Forum|alt.badge.img+43
  • Level 6 ●●●●●●
  • August 28, 2018
Add timer question in beginning of each block and select auto advance (set 180 seconds). Also select dont show timer and make your questions non force.

Forum|alt.badge.img+1
  • QPN Level 2 ●●
  • Answer
  • August 28, 2018
Hii @timothygg , Create embedded data before that block with value equal to 180. And add following javascript code on each page. !

  • September 27, 2020

https://www.qualtrics.com/community/discussion/comment/5616#Comment_5616Sorry, I know it's been a while. I have the same problem but the code works like this: when the time is over, the participant is automatically guided to the next question within this block (questions are separated by page breaks). Unfortunately, I need them to be guided to the next block. Do have an idea? Anyone else?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • September 28, 2020

https://www.qualtrics.com/community/discussion/comment/30637#Comment_30637Set an embedded data field to flag that the time is up and add display logic based on the flag to the rest of the questions in the block.


  • September 28, 2020

https://www.qualtrics.com/community/discussion/comment/30655#Comment_30655Sorry, I do not understand what this means. But I think I figuered out what's the problem with the code. It doesn't set TimeLeft to zero when the 10 seconds end. I displayed TimeLeft on the following question and the value was the initial number of seconds. How can I fix this?


  • September 28, 2020

Got it now, thank you Tom!


https://community.qualtrics.com/XMcommunity/discussion/comment/30637#Comment_30637Hi there,
Do you remember how you fixed the problem? I am having the same issues, and not sure how to fix it. I added the display logic to every single question, but the timer seems to restart with every single question within the block.