Forum Discussion
pass variable from storyline to LMS
Hello, I wanted to see if it is possible that with some Javascript or similar code in storyline (and later exported to scorm 1.2), that the change of value of a variable is permanently registered in the lms platform, I have this project as an example, where Going to the next slide changes a variable with a value of 0 to 1, but when closing the scorm, and reopening it, this value returns to 0. Is there any code so that when changing to 1 this value is maintained in the lms platform? I attached a sample editable
- PhilMayorSuper Hero
For a variable value to be saved you need to change slides again, it is the action of jumping slides that saves it for resume.
- Jürgen_Schoene_Community Member
since some versions of storyline show/hide a layer updates the resume string
the new behaviour is not documented - I found out by accident@articulate: if there is any documation which I have not found, please post a link
- PhilMayorSuper Hero
@Jürgen well you teach me something new each day it seems.
Cristian you should be able to save them by showing a blank layer.
- Jürgen_Schoene_Community Member
Small correction: the resume string (SCORM 1.2: 'cmi.suspend_data') is updating
- on enter slide (but not direct after course start)
- on show layer (not on hide layer)
tested on: https://app.scormtools.net