Is it possible to access custom states and modify it using JS?

Is there anyone can do this with Java Script code or it is impossible?

Still not sure about this @keith .
I saw your comment here 4 years ago : Access/modify custom states via JavaScript - #2 by keith
If there is something new we all will benefit from you .

The answer is no. You cannot. His explanation is to make your own variables with JS and then use them that way.

1 Like

Thank you @GH5T
I appreciate your response .

No but you can create a plugin element and control its states via js

1 Like

Why would you ever even need to do this? As @jared.gibb points out, a custom state could be an input to some element plugin or element plugin action and could be manipulated that way. (The resulting transformation being found at some output/exposed state of the plugin.) All of my plugins are, at the end of the day, about doing this.

1 Like

Thank you @jared.gibb
I appreciate your response .

1 Like

I made a WF for Login/SignUp and verification is sms if anyone use debugger and try to know what happen in my workflow and i terminate it if verification code not right
I wanted to know this because if anyone can modify states from browser with js code it will be a problem for me he can change states from it and break my app rules .
It is very good to know it not accessible .
thank you @keith .
I appreciate your response .