Replies: 1 comment 8 replies
-
HI @anika-t-l, at first glance I can't see why you're getting this error. Maybe you could post more of your code? Also, I'm not sure if this is a related issue, but I did notice a syntax error in your var block_break_train = {
type: "html-keyboard-response",
trial_duration: 300000,
stimulus: function(){
// ...
return "<p>You now have max. 5 minutes for a break.</p>" +
"<p>Your accuracy in the last block was " + accuracy_train + "%.</p>" +
"<p>Press any key to continue.</p>";
},
data: {test_part: 'block_break'}
}; |
Beta Was this translation helpful? Give feedback.
8 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.
-
Hi there,
I've been stuck on this issue for the past few hours:
I have an rdk task with several blocks. Between the individual task blocks, I inserted breaks and previously let participants determine themselves when to resume, so I had set trial_duration to null and choices to jsPsych.ALL_KEYS. Now however, I want to restrict the maximum amount of time participants have for their break, but I still want the break to end when they make a response before the trial_duration is reached.
I set trial_duration and that works, but if no response is made and the trial ends, upon the first response to the next trial of the rdk, I get the error "Cannot read property of type "tolowerCase" " and the experiment crashes.
[Code snippet below]
Could somebody give me a hint what the issue here could be?
Thanks in advance!
Anika
Beta Was this translation helpful? Give feedback.
All reactions