Retaining custom variables from reopened completed courses

Mar 29, 2021

Hi - this is my first time using SL for a few years and I was wondering if it's possible to retain the values of a custom variable when opening a course from an LMS that's marked as complete?

For example, if I have a custom score variable that is updated throughout a module and I exit the module without completing - then the latest score value is preserved when I resume it.

However if I complete the module, and this completion is sent to the LMS, and then reopen it for a second attempt to improve my score - the score is now set back to zero and all other custom variables are also set back to their initial values. Is this a limitation of storyline suspend data? Or can I overcome this with some javascript?

Thanks

3 Replies
Leslie McKerchie

Hello Jason, and welcome to E-Learning Heroes. 😊

Most Learning Management Systems consider a course to be in review mode after the tracking requirement has been met. In review mode, resume data is no longer sent to the LMS, which prevents learners from accidentally changing their course status back to incomplete, but it sounds like your LMS does the opposite.

This article may help get you started on double-checking your reporting option and understanding the published output as we wait for others in the community to weigh in.

Melissa Wells

Hello, I am having the same problem. Once students complete the course, I do not want them to be able to open the exam questions again through the LMS. I set up the following interaction that works when I used Lectora to author this same exam.

1. I created a custom variable to set to true when the begin exam button is clicked

2. I created a layer on the first slide that states if the variable is true, to show a layer that states they may not attempt the exam again, and it covers the begin button.

3. The setting in the player says to never resume

When I test it in our LMS and SCORM Cloud after an attempt, opening the first slide does not show the layer. For testing I made a textbox referencing the variable at the beginning and end pages. When I first complete the exam the variable shows as true. But clicking the module again in the LMS it shows false on the first page, which is why the layer is not showing.

Any help is greatly appreciated.

Melissa

Jose Tansengco

Hello Melissa, 

Happy to help!

It looks like you have the Resume Behavior for your course set to 'Never Resume'. You'll want to change this setting to 'Always resume' or 'Prompt to resume' if you want your course to retain the values of the variables after a course is resumed, since using 'Never Resume' effectively resets your course when it is re-launched.

You'll need to make this change on top of what's discussed in the article that my colleague Leslie shared.

If you have any additional questions, open a case with our support team here so we can provide additional assistance.