Forum Discussion
CommercialTr796
2 years agoCommunity Member
Javascript stopped working overnight
Hello,
I have a javascript that is used to open a pre-populated email and it has been working fine for the last month. However, it is no longer working after the weekend. Whenever the code should ...
PhilMayor
Super Hero
I think you have an error somewhere, the way javascript works in Storyline it is complied in one file, is one error in one trigger can stop all triggers after that point working.
You can try publishing and then running the user.js file through a checker like JS.hint
CommercialTr796
2 years agoCommunity Member
Thank you, i tried your recommendation and then thought to try the code in a new stroyline to see if this was the issue. So i opened a new storyline, added a submit button on slide 1 and then copied and pasted the same trigger to execute the javascript when the slide begins, on slide 2.
It worked....So i take it the code is ok and the error seems to be the variables you mentioned before?
I'm a little confused i must admit, but at least it narrowed the problem!