Forum Discussion

TracyCowan's avatar
TracyCowan
Community Member
2 months ago

Local Storage Issues

Howdy, I am trying to transfer user variable data between tabs during the same browser session. I have a published folder and in the story_content folder there are 2 other published storyline course...
  • Jürgen_Schoene_'s avatar
    2 months ago

    if you read the local storage

    you get the string "true" or "false"

    in your script you use boolean compare

    change the line - add two quotes

    if(Fam_completed == "true") {

     edit:

    • you should check the storyline variables - are they "Text" (string) or "True/False" (boolean)
    • the data types must match between storyline / javascript / localStorage