Skip to content
Discussion options

You must be logged in to vote

Hi @anjoomav, I think the reason this isn't working is because your stimulus parameter is combining HTML and file paths from timeline variables. When timeline variables contain the entire parameter value, then they can be used on their own. For instance, if you were using an image plugin then you can do this:

var test = {
  type: 'image-keyboard-response',
  stimulus: jsPsych.timelineVariable('LVHFStimulus'),
  // ....
}

But when you're combining information from timeline variables with other information (e.g. image paths and HTML strings), then the stimulus parameter must be a function that returns the whole parameter value. This is explained in the timeline variables section of the docu…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@becky-gilbert
Comment options

@anjoomav
Comment options

Answer selected by becky-gilbert
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