Reset all variables in a chapter?

mbuitenkamp-4316 Community Member Posts: 14 ☆ Roadie ☆

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?)
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 :)


  • wheels
    wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 598 eLearning ROCKSTAR Admin Team

    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.