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

Option to randomize question order in survey plugins #305

Closed
jodeleeuw opened this issue Nov 3, 2016 · 6 comments
Closed

Option to randomize question order in survey plugins #305

jodeleeuw opened this issue Nov 3, 2016 · 6 comments

Comments

@jodeleeuw
Copy link
Member

No description provided.

@fredcallaway
Copy link

fredcallaway commented Dec 8, 2016

This, and many other fine-control features could be easily achieved if the trial could be parameterized by a list of objects describing each question, e.g. (in coffee script)

bridge_quiz =
  kind: 'survey-multi-choice'
  items: jsPsych.randomization.shuffle [
    question: 'What is your name?'
    options: ['Sir Arthur', 'That guy who gets eaten by the rabbit']
    required: true
  ,
    question: 'What is your quest?'
    options: ['To seek the holy grail', 'Ummm...']
    required: true
  ,
    question: 'What is your favorite color?'
    options: ['Blue', 'No, yellow!']
    required: false
  ]

Something else that would be easier with this style would be assigning different questions to different conditions. For backwards compatibility and general flexibility, I would advocate allowing either input style. This kind of polymorphism is by no means unheard of.

@jodeleeuw
Copy link
Member Author

I agree. @GavinQ1 has done amazing work on a new form plugin (#310) that will likely replace these simple survey plugins. It is organized in this item-focused way. We are just working on finalizing the parameter set before merging it into the library.

@fredcallaway
Copy link

Wow, that looks great! I will make one suggestion to include an optional "correct" field. This streamlines a common use case for forms: quizzes to test participant comprehension of instructions.

@jodeleeuw
Copy link
Member Author

Great idea. @GavinQ1, is that something you can do now, or should we wait?

@GavinQ1
Copy link
Contributor

GavinQ1 commented Dec 8, 2016

@jodeleeuw Sure but probably next week? I need to prepare for finals this week.

@jodeleeuw
Copy link
Member Author

No rush, just wanted to get it on the list! Thanks!

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

No branches or pull requests

3 participants