Skip to content
Discussion options

You must be logged in to vote

In case anyone's wondering, adding this to the jspsych-html-button-response.js plugins file, under var trial_data worked for 6.2!

"word_chosen": trial.choices[response.button],

(Full code block)

// gather the data to store for the trial
var trial_data = {
"rt": response.rt,
"stimulus": trial.stimulus,
"button_pressed": response.button,
"word_chosen": trial.choices[response.button],
};

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@auraangelica
Comment options

Comment options

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