Forum Discussion
VicovandenEv121
5 months agoCommunity Member
Change state by new JS API
How can I change the state of an object using the Storyline Advanced JS API?
Tried putting this in a Execute Javascript Trigger:
object('6RWzLNBS5La').state= 10;
(10 is the name of the state)
...
- 4 months ago
It should work if you put the 10 in quotation marks :)
object('6RWzLNBS5La').state= "10";
VicovandenEv121
4 months agoCommunity Member
yep, quotation marks do the trick, thanks.
Related Content
- 21 days ago
- 6 months ago
- 2 years ago