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

itangalo’s picture

Component: Code » General code

Hm. 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.

itangalo’s picture

Version: » 7.x-1.x-dev
Status: Active » Fixed

Fixed and committed!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.