Forum Discussion

BrianRoemer's avatar
BrianRoemer
Community Member
4 years ago

Can a JS LMSCommit() trigger save variables to the Resume Data?

I'm struggling with the SL feature where page variables don't get saved to the resume data (to the LMS) until a learner leaves the page.  I'd like for a half-completed exercise to remember what buttons are clicked if they exit and return.

I've attempted to fire LMSCommit() in a JS trigger, but with no luck.  Has anyone used this JS to save a pages status before?  If so, how/where did you place the trigger?

My workaround is to "bounce" the learner to a hidden page and back to the interactive page each time they hide a content layer.  It's not perfect, but it works.

  • NO all variables are updated when the user leaves the page, the bounce trick is what I end up doing