JavaScript Triggers

Sep 14, 2015

I have a JavaScript trigger setup and it works great (running from my Public Dropbox folder)! However, when I add a second JavaScript trigger on a different slide in a different scene and publish, neither trigger works. I then take out the second trigger, republish and the first trigger works again. Can I use more than one JavaScript trigger in a single module?

Doug

14 Replies
Ashley Terwilliger-Pollard

Hi Doug,

You can certainly use more than one trigger with Javascript, but I'd want to know where/how you were testing your published output? You'll want to confirm you're testing in the intended environment as detailed here. Also, there is some additional information on working with Javascript here that you'll want to review. Since it's not something I can offer additional support on, if you continue to have difficulty you may want to share the .story file or code here so that the community can take a look at what you've set up. 

Bob Kaart

https://jsfiddle.net/ is something i'd use to write my code in, where i would just use a alert(variable); to make sure i get the desired output. But of course ideally you would want to test your JS in articulate directly. @Ashley I imagined the javascript to just "work" when you preview your course. I don't know the possibilities in that though :)

This discussion is closed. You can start a new discussion or contact Articulate Support.