Choose Level for "Reset All Variables" Action

It would be great if, when selecting the "Reset All Variables" action, you could further choose whether you want to reset all of the variables in the title (which is what it currently does), or just in the chapter, section, or current page. This would be especially helpful for developer-testing purposes, but could also potentially have other uses, too.

Discussion (9)

I've shared your suggestion with the development team :)

Thanks, Jennifer! :D

The development team wanted me to pass this along:

You can already reset the tracking variables for any chapter/section/page. Just use the Set Tracking Status action and set it to Not Started. Not started will reset that item and all of its children. For example, if a Chapter is set to Not Started, all of the Sections, sub-sections, and pages within it are also reset to Not Started (because it would make no sense for a chapter to be Not Started, but items within it be In Progress or Completed).

It's talked about in this webinar: http://community.trivantis.com/knowledge-base/whats-new-in-lectora-11-3/

Thanks for the pass-along!

However, I wasn't talking about the built-in completion tracking variables necessarily - actually, I was thinking more along the lines of custom variables and quiz questions (something that could be used with any kind of variable one might have).

So, hopefully, they didn't mark this suggestion as "done" on their list...if so, I'd like to reset that variable, lol! ;) :)

This would be really useful. I needed this functionality recently for a huge module that included multiple system-simulation scenarios (all in their own chapters). These scenarios used a lot of checkboxes, radio buttons, entry fields and I needed these to be reset so that if the person chose to go through a scenario again it was presented to them in the initial state. I had to set up an action group on the scenario launch page to reset every individual variable.

Note: I couldn't use the 'reset all variables' option as there were numerous other things that I was needing to track in the module.

For all form elements it may be an idea to add them to a form, one for each page. This will provide you with the "Reset form" action to reset all checkboxes, radio button groups, entry fields etc. If you have many in a chapter you can use a Test chapter with questions for all checkboxes etc. Test chapters can contain content pages there's no need for a question on every page. Then you can "Reset Test / Survey" to reset a single chapter only with one action.

Here's the response I recieved from dev:That

"That is currently the only way to do it; have an action group that has ModVAR action in it for each variable you want to reset to some other value.

However, there is a way to do it perhaps more easily using inheritance

Put the action group at the title level that has all of the ModVAR reset actions. Inherit that group to everywhere in the title. (Remember, an action group only runs when it's called so it will have no effect until you need it.) Then whenever you need to reset, all you need is one action to run the action group. You don't have to repeat all of the actions for each scenario. If the combination of variables you need to reset is different depending on the scenario, just copy the action group at the title level (and rename it), and change the included set of actions. Then you can have an action to RunActGroup A or RunActGroup B, as needed.

Perhaps in the future we can change the Reset Variables action to allow you to select the variable(s) to reset instead of "all"."

I was looking at the same type of scenario and was planning on using a form until I found a tiny hiccup, which I'll post as a separate section. I did have an idea that maybe this type of function could be added as an action and when the action is created, instead of just adding the action, you could create a selection box with the list of custom variables and the user could just check them off.

I've used the form option quite a bit and it's great, because part of my simulation has a "Clear Info" button, which not only helps me, but also helps screen reader users navigate as well.

We agree this would be beneficial and we hope to have it in a future version of the product. We're looking into modifying the reset variable action so it includes the ability to pick and choose which variables you want to reset.

Discussions have been disabled for this post