Skip to content

Image-button-response in cognition.run #1422

Answered by becky-gilbert
ler93 asked this question in Q&A
Discussion options

You must be logged in to vote

EDIT: I'm pretty sure my answer below is wrong. I think cognition.run ignores the stimulus file path and just looks to see if it can access the file name. Josh's answer below solved this problem.

Hi @ler93, your local directory structure isn't maintained on cognition.run, so if you upload any stimuli files, you can access them with just the file name. Try this in your cognition.run version:

var image = {
  type: 'image-button-response',
  stimulus: 'raven.png',
  stimulus_height: 500,
  choices: ['1', '2', '3', '4', '5', '6', '7', '8'],
};

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ler93
Comment options

@jodeleeuw
Comment options

@ler93
Comment options

Answer selected by ler93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants