Skip to content
Discussion options

You must be logged in to vote

Great question! This is one reason why we added the save_trial_parameters parameter 😃 In your case, you want to save the choices parameter. There's an example in the documentation on plugin parameters that's similar to what you're trying to do.

To save the button response text as its own property in the trial data, I would add an on_finish function to your trial (not the trial procedure). In this function, you can use the numeric response value indicating the index of the button that was clicked (which is what you normally get from a button response plugin) and the choices array (which you're adding to the trial data via save_trial_parameters) to retrieve the contents of the button that w…

Replies: 2 comments 1 reply

Comment options

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

Answer selected by CarineA
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
3 participants