jsPsych icon indicating copy to clipboard operation
jsPsych copied to clipboard

randomize_statement_order in likert-table in survey plugin not working

Open siddharthmisra89 opened this issue 1 year ago • 1 comments

randomization doesn't happen

siddharthmisra89 avatar Feb 26 '24 11:02 siddharthmisra89

Confirmed that this is true for this code snippet:

let jsPsych = initJsPsych();

const trial = {
  type: jsPsychSurvey,
  pages: [
    [
      {
        type: 'likert-table',
        prompt: ' ',
        randomize_statement_order: true,
        statements: [
          {prompt: 'I like to eat vegetables', name: 'VeggiesTable'},
          {prompt: 'I like to eat fruit', name: 'FruitTable'},
          {prompt: 'I like to eat meat', name: 'MeatTable'},
        ],
        options: ['Strongly Disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly Agree'],
      }
    ]
  ],
};

jsPsych.run([trial]);

Shaobin-Jiang avatar Feb 26 '24 23:02 Shaobin-Jiang