Forum Discussion

OwenHolt's avatar
OwenHolt
Super Hero
4 years ago

Passing Variable Data Between Storyline Blocks in Rise (a guide)

Did you know that you can use the computer's local storage to pass data from one Storyline block to another one within the same Rise course? Well you can and all it takes is a few simple lines of JavaScript code. 

This gives you all kinds of customization options for your Rise courses, including capturing and remembering the learners name and other selections they might make as shown here in this Rise example. What other ways might you use this?

https://360.articulate.com/review/content/b56569f8-4679-4c5c-a937-738eb98cc3fa/review 

  • It is hard to say without actually seeing your .story files but it looks like your first block could be sending the username to local storage BEFORE the user has actually input their name.  Try changing your trigger from Execute JavaScript when timeline starts to something else like "when variable changes" or "when user presses button".

  • Thank you so much for replying, Owen, sooooo appreciate you!

    I will try this suggestion. If it doesn't work, I'll attach both the .story files and the rise link if that helps. 

    Either way, I'll let you know if it worked.

    Thank you again so very very much.

  • Hi Owen,

    Bummer, it didn't work. Here are my .story files.

    Also, here is a review link:

    Thank you again, so much.

    (*edited to remove files)

    • OwenHolt's avatar
      OwenHolt
      Super Hero

      OK - I think I see the issue and it isn't with your Storyline files. The problem is on the Rise side and deals with how Rise loads the Storyline blocks. Your second block is loading before the 1st block is completing so, it is pulling the data prior to the data being input. 
      Try adding a continue divider between the 2 blocks and make it "Must complete the block above before proceeding" requirement. That should prevent the 2nd block from loading before the 1st block is complete.

      • SherriSagers-ca's avatar
        SherriSagers-ca
        Community Member

        Thank you Owen for taking the time to reply to this. I wanted to let you know that I use your solution a lot in my courses, so I follow this thread carefully and I think you may have just solved an issue I've been seeing lately, too! I'm about to start adding the dividers now! :D (woo-hoo!)

  • Ah, got it! This is great news, thank you, Owen.

    I'm still in the practicing / storyboarding phrase. I'm using the Rise course to see if what I want to do is possible; I haven't created the 3rd - 8th blocks yet, so the 1st block technically doesn't go anywhere.

    When you had me add a continue divider that must be completed, I realized that the 1st block cannot be "completed." Bingo!

    Thank you so much! I deeply appreciate you! 

    • OwenHolt's avatar
      OwenHolt
      Super Hero

      No problem. Connect with me on LinkedIn as well if you have further issues. 

  • JenelleGillis's avatar
    JenelleGillis
    Community Member

    Owen,

    Do the blocks have to be consecutive in Rise? I can't seem to figure out what I am doing wrong :(

    I will continue to troubleshoot, any guidance you could provide would be greatly appreciated. Thanks!

  • Charlotte's avatar
    Charlotte
    Community Member

    This is awesome! Thanks for sharing, Owen. I am looking forward to using this.

  • Hi Owen, 

    Many thanks for sharing this. May I ask a question please?

    How can the LMS report on the information from the variables? I.e. if I asked the user to select some scores at the beginning and then be able to review those at the end of a module. I would want to see that information in the LMS. Any ideas please?