You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I pasted the suggested modification of the survey-text plugin into the survey-text plugin script, but the time-limit is not working. I must be missing something - please can you help?
// end trial if trial_duration is set
if (trial.trial_duration !== null) {
jsPsych.pluginAPI.setTimeout(function () {
// when the time limit is up, automatically submit the form and end the trial
// by simulating a next button click
display_element.querySelector('#jspsych-survey-time-form').requestSubmit();
}, trial.trial_duration);
}
Originally posted by gdaroczy October 27, 2020
Hi,
we plan an experiment, which contains several power tests (e.g., Test1, Test2). Each test should have a time limit (e.g., Test1 =>1 minute, Test2=> 2 minutes) and contain more trials than is possible to solve in the given amount of time. So for every participant will solve different amount of trials. If the time stops for the Test1, the experiment should go on with Test2.
We would like to present all trials for Test1 on a single page as a survey-text.
For Test2 the trials should be presented on a single page (see the very simple example below).
How can we set these time-limits?
This discussion was converted from issue #2992 on March 31, 2023 01:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I pasted the suggested modification of the survey-text plugin into the survey-text plugin script, but the time-limit is not working. I must be missing something - please can you help?
// end trial if trial_duration is set
if (trial.trial_duration !== null) {
jsPsych.pluginAPI.setTimeout(function () {
// when the time limit is up, automatically submit the form and end the trial
// by simulating a next button click
display_element.querySelector('#jspsych-survey-time-form').requestSubmit();
}, trial.trial_duration);
}
Thank you,
Maya
Discussed in #1146
Originally posted by gdaroczy October 27, 2020
Hi,
we plan an experiment, which contains several power tests (e.g., Test1, Test2). Each test should have a time limit (e.g., Test1 =>1 minute, Test2=> 2 minutes) and contain more trials than is possible to solve in the given amount of time. So for every participant will solve different amount of trials. If the time stops for the Test1, the experiment should go on with Test2.
We would like to present all trials for Test1 on a single page as a survey-text.
For Test2 the trials should be presented on a single page (see the very simple example below).
How can we set these time-limits?
Thanks in advance,
Gabriella
Beta Was this translation helpful? Give feedback.
All reactions