Forum Discussion
Hi Jackie
Unfortunately, when you exit a Storyline Block in RISE, the variables you have set in the block are not retained. There are a number of ways around this including:
(a) Use a JavaScript trigger to write the text data you have captured in the Storyline block to local browser memory.
Local browser memory is storage used by browsers to store things like cookies that can be retained for a single browser session or, indeed, even if you close the browser window and re-open it. This works fine - except that the data is lost if the learner switches browser or device in the middle of a course.
(b) You could use JavaScript to write the text data you have captured to an external file - this needs to be on a different server (browsers will not allow the code to write to a local file for security reasons). But some developers use Google docs to store data in this way.
(c) It is possible if you are running the RISE course under a SCORM 2004 compliant LMS to use JavaScript to write the text data to the SCORM data structure. I have done this using a data array that is defined as part of the SCORM standard used for capturing learners comments the cmi.comments_from_learner data array.
There are other techniques using HTML5 and CSS code you can find on this site.
Hope this helps
Regards