Script to change state


I want picker action to change state of a button element but it is not possible via an interaction so I want to do this with a script. Can’t seem to figure it out, could use some help.

Thank you,


What exactly do you mean by changing the button element state?

You can change the state of component or screen with a script. You can also change the button element “state” to enabled or disabled with script. Basically the script needs to update value in Data slot and this data slot is then used as state index for element/component.


I did it using a data slot. By changing state I meant changing whether it is enabled or not, and changing it’s colour. Red/disabled, green/enabled.