Access to SL variables from Javascript

Mar 23, 2017

I'm looking to accumulate some quiz results as the user progresses through the content. I use variables created and set in earlier slides which are then to be read back and analysed in later slides.  Is it possible to read a StoryLine variable from Javascript once it has been modified within the main content. Essentially something like: 

function readAndPrintSLVariable() {

windows.alert( getStorylineVariable("test-result-one") ) ;
windows.alert( getStorylineVariable("test-result-two") ) ;
// etc.

}

Be the first to reply

This discussion is closed. You can start a new discussion or contact Articulate Support.