Forum Discussion

VicovandenEv121's avatar
VicovandenEv121
Community Member
4 months ago
Solved

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) ...
  • CharlotteHasler's avatar
    4 months ago

    It should work if you put the 10 in quotation marks :)

    object('6RWzLNBS5La').state= "10";