Skip to content
Discussion options

You must be logged in to vote

Hi @woodenchair, the second solution you mentioned - putting the images into objects - should work. So for instance, if your image array looked like this:

var images = [{picture: '<img src="Images/red.jpeg"></img>'}, {picture: '<img src="Images/blue.jpeg"></img>'}, {picture: '<img src="Images/yellow.jpeg"></img>'}];

Then you should be able to set up the trial procedure like this:

var run1_NATURAL = {
  timeline: [
    {
      type: 'survey-likert',
      preamble: jsPsych.timelineVariable('picture'),
      questions: [
        {
          labels: likert_scale,
          prompt: "I would like to eat this food right now, in its presented quantity."
        }
      ]
    }
  ],
  timeline_va…

Replies: 1 comment 1 reply

Comment options

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

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