Skip to content
Discussion options

You must be logged in to vote

Hi Valentina,

Great question. If you're using jsPsych v6.3.0, there's an easy way to do this. You can save the randomized button choice labels to the trial data using the new save_trial_parameters parameter that's available in all plugins. And in the on_finish function, you could also add a property to the trial data that contains the label of the button that was pressed. In the jsPsych examples folder, there's an example file called "save_trial_parameters.HTML" - the 3rd example trial in that file shows exactly how to do this.

If you're using a version of jsPsych <6.3.0, then the save_trial_parameters option doesn't exist. So another way to do this is to make the list_options array into …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jodeleeuw
Comment options

You must be logged in to vote
0 replies
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