Forum Discussion

AlLauer-62a7ef6's avatar
AlLauer-62a7ef6
Community Member
2 years ago

Pass variable value from Rise web object with embedded interaction block to Storyline

I have a Storyline 360 module with two nested Rise courses (one in English and one French) so that the student can choose which language (s)he prefers to view. I have a SL interaction block in each Rise course that I want to use to signal completion to the SL360 module (now the grandparent if you will) so other actions within the SL360 module can take place. Those actions AND the completion of either of the two embedded Rise courses will eventually record completion of the SL360 module to the LMS regardless of whether the English or French Rise course was completed.

Is this possible? 

 

  • This must be possible! :)

    I'm not familiar with using JavaScript in Rise yet, but I've just used JavaScript in a web object in a Storyline course (ie code running in a custom html file) to take internal Storyline variables and use them in the web object, using this code: 

    var player2 = parent.GetPlayer();
    var var1 = player2.GetVar("StorylineVar1");

    (I used player2 instead of player because I already have var player = GetPlayer(); in some JavaScript in Storyline.)

    This code lets you take the Storyline variable, StorylineVar1, and use it in the JavaScript in the web object as var1.

    I could have a tinker with some JavaScript in Rise, but I'm busy with some other stuff at the moment. I'll let you know if I get the chance to play around with it :)

    [Edit - How do you have the Rise courses embedded in the SL360 module, and how do you have the SL interaction block embedded in the Rise courses?]

  • Thanks Jim. The Rise courses are embedded as Web Objects in the SL360 course and each Rise Web Object contains a SL360 Interaction Block where I generate the variable based on a button push interaction. Did that answer your questions?

    I'll continue to tinker too and let you know if I have any success. It's been 15 years or so since I last used JavaScript so I'm really rusty, but loving the newer syntax and resources.