Skip to content
Discussion options

You must be logged in to vote

Hi @au-justin,

You can modify the data stored for a trial in the on_finish event. Something like this should work:

var test_stimuli = [
        {stimulus: images[0], choices: ['one', 'two']}, // 1
        {stimulus: images[1], choices: ['ten', 'twenty']}, // 2
];

var test = {
      type: jsPsychImageButtonResponse,
      stimulus: jsPsych.timelineVariable('stimulus'),
      choices: jsPsych.timelineVariable('choices'),
      button_html: [
            '<button class="jspsych-btn" style = "position: relative; left: -50px; top: 100px; font-size: 40px; height: 200px; width: 250px">%choice%</button>',
            '<button class="jspsych-btn" style = "position: relative; left: 50px; top: 100p…

Replies: 1 comment

Comment options

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