Skip to content
Discussion options

You must be logged in to vote

Hi @d-bohn, sorry for the very slow response. I think you should go with the array approach rather than the one you've listed above, because this line:

jsPsych.data.addProperties({ text_responses: input });

will save the value of input to a data property called text_responses, and since the data properties have to be unique, the value of text_responses will be overwritten each time this is called. But I think the array approach that you suggested should work - something like this:

// outside of the check function, initialize the text_responses property in the data with an empty array 
jsPsych.data.addProperties({ text_responses: [] });

// inside the check function, update the value of te…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by d-bohn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants