Set a variable with javascript editor

You can do this using a set variable step in a workflow (just go to JavaScript mode and return the intended variable value) or use the wwLib object from outside that context. I made a YouTube about setting a weweb state variable from JavaScript land.

1 Like