Skip to main content
BNadler
Participant
January 19, 2016
Question

How do you save variables across multiple learning sessions?

  • January 19, 2016
  • 3 replies
  • 430 views

I am looking to accomplish this:

A learner launches a course and it has several sections. Each time the learner completes a section, a checkmark appears on the screen, and thus letting the learner know they completed the section. They close the course before completing the whole course. When they come back, the course knows that they had been in two of the five sections and shows them with the checkmark displayed.

I understand how to do this within a single session of a course. Setting a variable and if the variable changes, show an image. I also understand bookmarks and how to turn them on.

What I don't know how to do is store that variable so when they come back to the course, that set of information is still intact.

My assumption is that this requires JavaScript and saving cookies to a learner's computer. Then having the course check for this using JavaScript upon launch.

Is there an easier way to do this with Captivate? Is there a way to leverage the bookmark feature to do this?

This topic has been closed for replies.

3 replies

February 7, 2017

I too am wanting to do the same things and many solutions appear to require the use of new variables which need to be stored in the various .js files outside the project. In my environment that's not practical as there are several Captivate installs in an enterprise environment in which modifying the .js files requires admin access. And keeping up with all the installs would be a nightmare.

So is there a way of defining the variables within Captivate projects and saving their states to cookies?

TIA

Andrew

Lilybiri
Legend
February 7, 2017

I mentioned a widget for SWF output. There is also one for HTML output, more recent, from InfoSemantics:

http://www.infosemantics.com.au/adobe-captivate-widgets/cpextra

That will allow you to use local storage, and everything can be set up in the Captivate course.

February 7, 2017

Thanks. I just looked at Rob's infosemantic site and it looks like CPExtra is only available for HTML output with Captivate 9 which I'm about to move to. We are still using SWF/HTML unfortunately.

TLCMediaDesign
Inspiring
January 20, 2016

We do this by saving JSON strings to localStorage. Works for SWF and HTML5.

We built this into a course that is not using an LMS to automatically save all user variables and retrieve them upon re-entry.

Lilybiri
Legend
January 19, 2016

For SWF output Michael Lund had a widget for that purpose. You can do it with JS, in case you want HTML output, but.... if you wait a little bit longer. Sorry, cannot tell more.