Forum Discussion
Clearing "Resume where you left off"
Our programmers found the javaScript
DS.resumer.clearResumeData()
it clears the saved state of the current training in the browser without affecting any other trainings a learner may have open. We follow with OnTrainingCompletion() to record completion and exit out of our home-built web app. Works great.
Thank you! That is a WONDERFUL share. EXCEPT, and "it's not you it's me" , and if you don't want to get into the gory details .. But for example, does DS.resumer.clearResumeData() go into an "execute javascript" of a specific slide, given you are using "PUBLISH TO WEB" as you say "home-built web app"? - I'd love know understand how it works, but you may not, since it was a find by "our programmers".
Just curious, Raph
- ANJAMETZ3 months agoCommunity Member
We are using PUBLISH TO WEB. I know that it clears the saved state of the training in the browser. If the learner visits another slide after that, it repopulates the saved state. That's why we are exiting out right after running the script. Hope that helps.
- RayCole-2d641853 months agoCommunity Member
We are also using "publish to web." And we have a Get Credit button at the end of the course that creates a completion record in our home-brew "LMS". But unfortunately, our Get Credit button opens up a URL to our homebrew "LMS" in a new tab. So we aren't able to close out of the course browser window or it would close out the tab where the person logs in to get credit for completing the course.
This means I need a way to lock the navigation to prevent the learner from clicking Get Credit and then going back through the menu or using the Prev button to review parts of the course. Disabling the Next and Prev buttons is simple since it can be done with a trigger. Can the course menu be set to "Locked" either by a built-in trigger or via JavaScript?
Related Content
- 2 months ago
- 5 months ago