How to set timer in survey-text? #2574
Unanswered
Hanqiu0718
asked this question in
Q&A
Replies: 1 comment
-
I think automatically advancing to the next page will require modifying the plugin. If you want to get close without modifying the plugin, you could use the on_load: () => {
document.querySelector('button').disabled = true;
setTimeout( () => { document.querySelector('button').disabled = false }, 1000 * 60 * 5 )
} This will not auto advance the trial but it will make it at least 5 minutes. I suppose you could also disable the text input after 5 minutes: on_load: () => {
document.querySelector('button').disabled = true;
setTimeout( () => {
document.querySelector('button').disabled = false;
document.querySelector('textarea').disabled = true;
}, 1000 * 60 * 5 )
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are asking participants to write a 5-min essay. How do I modify the variable to show this page for only 5 mins, and then will automatically direct to the next page after 5 mins? Here's my code:
Beta Was this translation helpful? Give feedback.
All reactions