Problem/Motivation
When answering a question incorrectly, you probably want to give it another try. As it is now, any answer is wiped when reloading the page on submission – which makes it more difficult to study your incorrect answer and figure out what you did wrong.
Proposed resolution
Have default values on all answer fields set to previous submission, except when you got the question right.
Remaining tasks
Find a way to implement this.
Implement it.
Try it, maybe iterate a bit, close the issue.
User interface changes
(as described above)
API changes
Hopefully none, as last submission should be possible to get from the $form_state.
Comments
Comment #1
itangalo commentedHm. I don't think it is as easy as picking values from $form_state, since only the question class knows what parts of the form are affected.
Possibly this is best done using a form validation, not on form submit.
Comment #2
itangalo commentedFixed and committed!