Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

randomize_statement_order in likert-table in survey plugin not working #3240

Open
siddharthmisra89 opened this issue Feb 26, 2024 · 1 comment

Comments

@siddharthmisra89
Copy link

randomization doesn't happen

@Shaobin-Jiang
Copy link
Contributor

Shaobin-Jiang commented Feb 26, 2024

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]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants