-
Hi, This is how I wanted to implement this, but it's not working, it still shows only target. I'm new to javaScript, so I'm not sure if I'm getting the syntax wrong or the logic doesn't work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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:
You can adjust the appearance by changing the HTML/CSS of the string that is being returned.