Forum Discussion

ScottWeiner-152's avatar
ScottWeiner-152
Community Member
11 hours ago

Passing Objects between JS Triggers

I can't seem to pass an object between triggers in Javascript.  In Trigger A, I have a

let myTable;

statement on the first line.  Then I'm using Tabulator to create a myTable.  In Trigger B, which might run on a button click or at a certain time (say after 10 seconds), I want to reference myTable to turn a row of that table a different color.  I've tried async/await, but it doesn't seem to work.  Is it possible to update myTable in a separate javascript trigger or is that not possible in SL?  I'm pretty new to JS and integrating into Storyline.  Any help would be greatly appreciated.  Thanks!

  • Some other user asked me for tables using Tabulator in Storyline too. Im gonna make a tutorial on that when im back home. That will be after the weekend.

  • For example this one: https://community.articulate.com/discussions/discuss/global-scope-for-javascript-variables-in-storyline/1060627

  • Scope issue. Each trigger has its own scope. Search for that on my posts and you will find sample to fix this.