Open saferust opened 1 year ago
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?
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 totrue
orfalse
. When set totrue
, the button behaves as it does currently, appearing when a user answers questions incorrectly. When set tofalse
, 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: