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

Oct 27, 2021

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.

1 Reply