Forum Discussion

soucie's avatar
soucie
Community Member
2 months ago
Solved

Adding current date not working

Hi. I'm trying to add the current date using a variable trigger but cannot seem to get it to populate. I have the correct javascript and it doesn't work when published. I'm at a complete loss at to w...
  • SamHill's avatar
    SamHill
    2 months ago

     

    EDIT: Is see in the console a reference to SystemDate, but the JavaScript is attempting to set CurrentDate. Can you confirm you Storyline variable is named CurrentDate and referenced as %CurrentDate% in the tex box

    -------------

    Do you mind sharing you .story file. You can just attach to the post. One thing I would check is just make sure your variable CurrentDate is spelt correctly and does not contain whitespace before or after it wherever it is referenced.

    Just copy one correct instance and then paste wherever it is referenced to be sure.

    Happy to check your file if no luck still.