Reset questions answered on previous screens
March 5, 2012 12:00 AM
I have a course that is divided into two sections. During the first section the learner answers some questions and I keep a running score in custom variables. There is then a review screen before starting the second section. In the second section the learner again answers questions which are tracked in a separate custom variable. At the end of the second section the learner is shown their score.If their score is under a certain threshold for the second section, they are given an option to repeat just the second section again. I am able to zero out the score tally for the second section and send them back to the review screen in the middle of the course right before the second section starts easily enough.
The problem is that as they return into the second section, their previous answers to questions are still there. These are multiple choice questions. Some use radio buttons and a couple are check boxes. How can I reset just the questions in my second section so that the learner can repeat these?
The screens themselves have a single question (multiple choice) and a "submit" button. The submit button processes the question onclick. So I think I need a way to not only reset the selected radio buttons/check boxes, but also reset if the question has been processed. Ideally (if possible) I would like to reset all of the section 2 questions at once, from the final page where the learner selects to retry, instead of having to reset each individual question on every screen of my second section.
oh, and completely comfortable with a solution requiring javascript if that makes this easier to accomplish. Anyone know how I can reset the previous selections?
Discussions have been disabled for this post