Skip to content
Discussion options

You must be logged in to vote

Hi @kburkin, yes I think the problem is the use of jsPsych.randomization.shuffle in your trial information. Instead of doing it that way, could you try making your choices parameter into a function that accesses the trial's choices array from timeline variables, and then calls the randomization function, like this?

trial definition:

var test = {
  // ...
  choices: function() {
    return jsPsych.randomization.shuffle(jsPsych.timelineVariable('choices'));
  },
  // ...
};

trial info:

{
  // ...
  choices: ['meat/meat_01b','money/money_01b','punch1/punch1_01s'],
  // ...
}

And WRT this error:

Uncaught ReferenceError: jsPsych is not defined
    at test_stimuli_List1.js:10

I think this migh…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@kburkin
Comment options

@kburkin
Comment options

Comment options

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

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