Add time-on-page requirement using sd_stop_if() #256
-
DescriptionHello, Is there a way to require a user to spend a minimum amount on a page of time before moving on the next page. This is useful in survey research to try to ensure that people spend at least some time thinking of a particularly important question. Could this be done using the sd_stop_if() function? If so, how to specify the logical condition? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
I think that should be possible, though I'm not 100% sure yet how to trigger the timer starting. You should be able to write a custom function and then use it as a condition, something like this, in Alternatively, you might be able to just use some simple javascript to hide the next button until a desired amount of time has elapsed. Just having the button be hidden when the page loads and then appear after some time would probably be the simplest. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, thanks! Your preferred solution makes sense. I wonder if, using the |
Beta Was this translation helpful? Give feedback.
-
|
You could try it. The different time stamp names are created based on the page and question ID names, so if you used a time stamp name in the condition in |
Beta Was this translation helpful? Give feedback.
-
|
Issue 259 could be a possible solution to this. |
Beta Was this translation helpful? Give feedback.
Issue 259 could be a possible solution to this.
In short, I intend to create a new
waitparameter forsd_nav()that sets a countdown in seconds. For example,sd_nav(wait = 30)sets a 30s wait time, and forces the participants to stay at least 30s before move on.