Skip to content

Conversation

@stephenmjerge
Copy link
Contributor

Summary

  • add response_index array to survey-multi-choice trial data (unanswered = -1)
  • expose option indices via data attributes
  • update simulation to use indices when clicking
  • add tests for duplicate/empty options and unanswered questions
  • document response_index

Testing

  • npx jest -c packages/plugin-survey-multi-choice/jest.config.cjs

Fixes #3639

@changeset-bot
Copy link

changeset-bot bot commented Jan 24, 2026

🦋 Changeset detected

Latest commit: 7c1813a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@jspsych/plugin-survey-multi-choice Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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

Successfully merging this pull request may close these issues.

survey-multi-choice does not record option indices

1 participant