GetVar Issue - JS stops at first GetVar
Oct 06, 2014
Hi,
I am trying to get the value of a Text Entry box using the (simple!) code:
var player = GetPlayer();
alert("Hello");
var vdata = player.GetVar("T1EmailMsg");
alert(vdata);
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!
Subathra
Be the first to reply
This discussion is closed. You can start a new discussion or contact Articulate Support.