IAT plugin problems! #1898
-
Hello! var con_train_block = { If you press the wrong key, a red X will appear. Press the other key to continue ',trial_duration: 3000, //Only if display_feedback is false display_feedback:false, left_category_key: 'f', right_category_key: 'j', left_category_label: ['数学和男性名字'], right_category_label: ['语文和女性名字'], response_ends_trial: true, } The doc says that when the display_feedback is set to false, trail_duration is needed and the trail will continue automatically, but it still need key press! Needing help to help me finishing the final assignment lol. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @margin-bqk, yes I just tried this and I see what you mean. I think the trial should end immediately after an incorrect response, with the following parameters: var trial = {
type: 'iat-image',
force_correct_key_press: false,
display_feedback: false,
response_ends_trial: true,
// other parameters...
} With these settings, I'm finding that a correct response ends the trial immediately, but an incorrect response doesn't. Instead, I think the participant is required to press another key to end the trial. I've created an Issue for this (#1900) so that we can verify that this is a bug, and if so, fix it. In the meantime, you can fix this yourself with the following modifications to the IAT plugin: jsPsych/plugins/jspsych-iat-html.js Lines 219 to 223 in ae332b3 Replace the keyboard listener in the conditional (lines 220-222) above with: end_trial(); jsPsych/plugins/jspsych-iat-html.js Lines 251 to 255 in ae332b3 Replace the keyboard listener in the conditional (lines 252-254) above with: end_trial(); |
Beta Was this translation helpful? Give feedback.
Hi @margin-bqk, yes I just tried this and I see what you mean. I think the trial should end immediately after an incorrect response, with the following parameters:
With these settings, I'm finding that a correct response ends the trial immediately, but an incorrect response doesn't. Instead, I think the participant is required to press another key to end the trial. I've created an Issue for this (#1900) so that we can verify that this is a bug, and if so, fix it.
In the meantime, you can fix this yourself with the following modifications t…