Time limit for REQUIRED survey items #3429
Unanswered
silviaformica
asked this question in
Q&A
Replies: 1 comment
-
Update in case someone will stumble upon a similar problem in the future.
|
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
-
Hi all,
I am trying to design a survey that has three questions for each trial. I am using the plugin-survey-likert, and I set all three questions as REQUIRED to allow participant to submit. Everything works nicely so far.
However, I would like to also include a time limit, so that, if after this trial_duration has passed the participant has not yet submit the answers, the survey continues to the next trial.
I have been trying to modify the plugin to include this trial_duration. I added trial_duration as a trial attribute:
I tried to use the suggestions in this ( #2995) and other discussions, so I added this code:
This works only partially: after the trial_duration has expired, the plugin simulates the form submission, but this is halted because the response to the questions is set as required. Therefore, after trial_duration has expired, the only effect I obtain is to trigger the appearance of the "please select one of these options" message.
How can I override the REQUIRED attribute after the trial_duration has expired?
So far, I tried to manually modify the options_strings of the trial, and to make a custom-made end_trial function, but with no success.
Thanks a lot for any help!
Beta Was this translation helpful? Give feedback.
All reactions