I have numerous data entry fields in my course. I have set up a button that clears these variables/fields when it is clicked. That works great. The problem: when the course is exited and re-launched, the text fields are populated again with the information that was typed in before it was cleared by clicking the button. I have tried everything from setting up triggers that clears each variable separately, to javascript. for example:
player.SetVar("zzJournalConclusion", " ");
I can get the text fields to clear properly, but they won't stay blank when the course is re-launched. This is published for LMS, including HTML5 output. Any help would be greatly appreciated!!!
The only way you may get this to work would be to set your course to not resume in the LMS. Then your resume data will not get stored in the LMS on course exit. If your course is sending resume data to the LMS after every slide or two, then clearing your variables at the end of the course may not wipe out the resume data already stored.
Just brainstorming though, as I've not tested anything like this...
In addition if you exit a course on the slide you cleared the variables then this does not get saved to the resume data and this is by design, to save any variable changes you make to the resume data you must jump slides as this is when the changes are committed.
3 Replies
The only way you may get this to work would be to set your course to not resume in the LMS. Then your resume data will not get stored in the LMS on course exit. If your course is sending resume data to the LMS after every slide or two, then clearing your variables at the end of the course may not wipe out the resume data already stored.
Just brainstorming though, as I've not tested anything like this...
Hi Laurie,
You can read more about the resume behavior here as Brian indicated.
In addition if you exit a course on the slide you cleared the variables then this does not get saved to the resume data and this is by design, to save any variable changes you make to the resume data you must jump slides as this is when the changes are committed.
This discussion is closed. You can start a new discussion or contact Articulate Support.