-
Notifications
You must be signed in to change notification settings - Fork 60
Enable freeform answer submit when feedback is hidden #110
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
Conversation
When the pb_mcq_hide_previous_answer is set to True, MRQs should behave the same way as MCQs behave - previous choices should not be displayed and the checkmarks should be hidden.
| @property | ||
| def hide_feedback(self): | ||
| return self.get_option("pb_hide_feedback_if_attempts_remain") and not self.max_attempts_reached | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtyaka I like this refactoring :)
|
|
||
| // Data may have change, we have to re-validate. | ||
| validateXBlock(); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtyaka change ⟶ changed. Also, is this still necessary now that answer blocks are handling validation themselves?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@itsjeyd I fixed the typo, thanks for noticing. This probably isn't necessary for answer blocks anymore (although it shouldn't do any harm), but I believe it still makes sense for other blocks.
|
👍 once newest comment is addressed and build is green. |
When problem builder is configured to hide feedback upon revisiting a question (pb_hide_feedback_if_attempts_remain option is enabled), when the user returns to a problem builder block which contains only a freeform question, the user is not able to click "Submit" without changing the answer text first. This patch fixes that by keeping submit button enabled if pb_hide_feedback_if_attempts_remain is turned on. MCKIN-3890
|
Thanks @itsjeyd! |
cf. MKCIN-3890
Test Instructions
pb_hide_feedback_if_attempts_remainin yourXBLOCK_SETTINGS.This PR also contains a patch that makes MRQ behavior when
pb_mcq_hide_previous_answeroption is enable more consistent with the way MCQs behave. To test:pb_mcq_hide_previous_answerin yourXBLOCK_SETTINGS.