BenJohnson-f90c
2 years agoCommunity Member
Send variables from web object
Hi,
I'm trying to send a variable from a web object to storyline to display that value on the screen. In my web object HTML page, I have this:
let testVar = "Hello World"
In my storyline file I have a variable of the same name on the stage to show the content of the passed in variable. Storyline is told to run the JS on slide startup with this JS:
let player = GetPlayer();
player.GetVar('testVar');
I can't get the variable to show. What am I doing wrong?
Thanks :)