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

Make "See the Correct Answers" Button Optional #36

Open
saferust opened this issue Sep 29, 2023 · 1 comment
Open

Make "See the Correct Answers" Button Optional #36

saferust opened this issue Sep 29, 2023 · 1 comment

Comments

@saferust
Copy link

Description:

It would be nice to have a feature that allows users to make the "See the Correct Answers" button optional in the quiz configuration. Currently, this button appears automatically when a user answers some questions incorrectly. However, in certain use cases, we may want to hide this button to encourage learners to attempt the quiz without immediately seeing the correct answers.

Proposed Solution:
To implement this feature, a configuration variable must be added to the quiz configuration file. This variable, let's call it show-correct-answers, can be set to true or false. When set to true, the button behaves as it does currently, appearing when a user answers questions incorrectly. When set to false, the button is hidden, and users can only review their answers without seeing the correct ones, while keeping the "retry the quiz" button always visible.

Example Usage:

<!-- Quiz Configuration -->
show-correct-answers`: false
@willcrichton
Copy link
Collaborator

I'm not sure this behavior would be desirable if there's a question that has truly stumped a user, especially if it's open-ended (so not easily guessable). Are you expecting that the user would just give up and never see the correct answer?

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