survey-multi-choice and survey-html-form response access for other trials and conditionals #2334
Unanswered
Ashes-Spot
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have two questions about accessing participant responses from survey-html-forms - the first question may answer the second.
I'm using jsPsych 6.3.1
First - using participant response in a conditional to repeat a practice session
Second - will the way to access responses for the first question also apply to survey-html-form responses? I wish to use survey-html-form responses from one set of trials to build an array used in a following set of trials.
I'm new to jsPsych and javascript. I've gone through the docs and discussions (particularly #2322, #1260, and #1907) but trying some of the code from those posts is not producing results for me. I am getting empty arrays in my console.log as well.
Code below produces empty arrays for RhymeOpt.
I did try another variant below, but I'm getting this error "Understanding check_array_correct_test.html:47 Uncaught TypeError: Cannot read properties of undefined (reading 'response')" and mucking about with the "values()[0].response.Q0;" section leads to undefined objects.
Rumour has it that survey response access is improved in jsPsych 7? I may be missing something very basic, but I think the on finish data area is my issue. BTW, RhymeOpt_correct is a global variable.
Thanks in advance...
Ash
Beta Was this translation helpful? Give feedback.
All reactions