Reset all variables in a chapter?
November 24, 2021 12:00 AM
Hi,
I'm looking for one of two things:
1. a way to reset a test from another page outside the test (I don't see the 'reset test/survey' option?)
OR
2. a way to reset some 50 variables at the click of a button, but only within one chapter.
All the other variables should remain untouched.
Is that at all possible?
Looking forward to ideas :)
Discussion (2)
One possibility.
Add a variable called do_reset_test initially set to zero.
Add a page to the Test at the beginning. Then add an on show action go to next page if do_reset_test is zero. Add another on show action reset test if do_reset_test is 1. Add another on show action go to previous page if do_reset_test is 1 delay by 0.1. Add another on show action modify variable set do_reset_test to zero.
Then you can add a button anywhere in the course that will reset the test. Add an action to set do_reset_test to 1. Add an action to navigate to that first blank test page.
pardon the late reply, but this looks really good!
thanks :)
ETA: unfortunately I only see the options "Process test/survey" and "Cancel test/survey".
Could this be because it's a test with 3 randomized sections?