Forum Discussion
PaulGolightly
3 months agoCommunity Member
JavaScript not working at all?
Hi everyone, a couple years ago I created a simulation of an internal product, and in trying to update the simulation, a JavaScript routine stopped working that had allowed Storyline to evaluate whet...
- 3 months ago
Try this:
var player = GetPlayer(); player.SetVar("Eval_UsedCaseNumber", true);
This should properly update the boolean variable. Other than that, your code syntax looks good if you're setting a text value for the text variable. Additionally, check the console logs in your developer tools. You should see an error message or some indication if your code is not functioning as intended. If possible, please upload your sample project here so that someone can take a closer look.
PaulGolightly
3 months agoCommunity Member
Unfortunately I can't upload the simulation since it shows an internal proprietary product. However, suggesting I check the console was helpful. I found an improperly escaped / in a regular expression in a completely different trigger that seems to have taken down all the JavaScript in the entire thing.
Thanks for the help!