pass variable from storyline to LMS
Jun 06, 2023
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
4 Replies
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.
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
@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.
Small correction: the resume string (SCORM 1.2: 'cmi.suspend_data') is updating
tested on: https://app.scormtools.net