Hello,
I have created a series of 5 questions with two possible answers - correct and incorrect. I have created a variable for each, RunCorrect and RunIncorrect and have set them with a value of 0. Additionally I created a 3rd variable called EarnedShield. When the user clicks the correct option, RunCorrect is assigned 1 with an expression of RunCorrect = RunCorrect + 1 and EarnedShield is assigned 1. If they click the incorrect option, RunIncorrect is assigned 1. On the following screen, if RunCorrect is great than or equal to 1, a badge is displayed. If RunIncorrect is equal to 1, then a "sorry" message is displayed and if EarnedCorrect is equal to 1 then a "congratulations" message is displayed. When the user click the Next button, RunIncorrect and EarnedShield are Assigned 0 to "reset". This allow me to display a badge for each correct answer and no badge for an incorrect answer.
This works perfectly the first time through the series of questions. However, I need for the user to be able to Try Again after they have been through all 5 questions. Knowing I need to reset the variables, I created an Advanced Action to "reset" them to 0 with Assign RunCorrect with 0, Assign RunIncorrect with 0, and Assign Earned Shield with 0. This is triggered when the user clicks the Try Again button.
However, the variable do not reset.
Below is the actual advanced action I am using to "reset" the variable - executed on click of Try Again button. PS, I have also tried to execute this advance action (minus the Jump to Slide) on Enter of the first slide in the series of question. No luck.
Any help would be appreciated.
I am using version 6.0.1.240.
Thank you,
Susan