Skip to content
Discussion options

You must be logged in to vote

Hi @plavipaun,

You'll need to use a dynamic parameter to join together the two timeline variables. Here's a basic example that you could customize to fit your needs:

var afc_test = {
  type: jsPsychHtmlKeyboardResponse,
  stimulus: function(){
    return `<p>${jsPsych.timelineVariable('target')}</p><p>${jsPsych.timelineVariable('foil')}</p>`;
  },
  choices: ['d','k']
};

You can adjust the appearance by changing the HTML/CSS of the string that is being returned.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by olgaslj
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