GetVar Issue - JS stops at first GetVar


I am trying to get the value of a Text Entry box using the (simple!) code:

var player = GetPlayer();


var vdata = player.GetVar("T1EmailMsg");


T1EmailMsg is a variable assigned to the Text Entry box and the above Javascript code is triggered when someone clicks on a button.

I am able to see the "Hello" alert but nothing happens after the first "GetVar" and I don't see the second alert. Whenever I use "GetVar", the JS execution stops.

The same code works in a new Storyline file that has only two slides whereas the issue happens when it is present in a Storyline file that has 55 slides. I am not sure if the size of the file matters but wanted to put that info out.

Thanks in advance for anyone who can help!


Be the first to reply