Maximum Time on Page

59 views
Skip to first unread message

Daniyal Chawla

unread,
Jul 16, 2021, 12:01:56 AM7/16/21
to oTree help & discussion
You've shared code for minimum time of page -- in which the next button only shows up after a certain amount of time has passed.

Is there a way to modify this so that it goes away after a certain amount of time has passed?

Here's the code to your code:

Chris @ oTree

unread,
Jul 16, 2021, 12:10:04 AM7/16/21
to oTree help & discussion
What do you want to happen if they don't click it in time? they are stuck on that page?

Daniyal Chawla

unread,
Jul 16, 2021, 12:14:43 AM7/16/21
to oTree help & discussion
Yes. The idea is to encourage users to work continuously on the task -- and penalize them for taking breaks in between (which would defeat the purpose of the experiment).

Chris @ oTree

unread,
Jul 16, 2021, 12:51:11 AM7/16/21
to oTree help & discussion
I just added an example to otree_snippets called dropout_detection: https://www.otreehub.com/projects/otree-snippets/

Daniyal Chawla

unread,
Jul 16, 2021, 4:49:12 PM7/16/21
to oTree help & discussion
This is amazing, thank you so much!

Daniyal Chawla

unread,
Dec 30, 2021, 3:19:07 PM12/30/21
to oTree help & discussion
Hi again,

Is there a way to hide the timer on top? I still want the dropout detection to happen. But don't want the user to be able to see the timer

Thanks!
Reply all
Reply to author
Forward
0 new messages