How to change the state only if the state isn’t set ?
Trigger : Click on a button
Workflow: Set a state to “clicked” (only when state is not-clicked)
Workflow: Set a state to “not-clicked” (only when state is clicked)
This reset the state to “not-clicked” so how to do ?
Hi there, @hermes… one way to do what you described is to set up two workflow events for the button, and put conditions on the events that specify when each event should run. In your case, one of the events would be something like when the button is clicked and the custom state’s value is “clicked”, and the other event would be when the button is clicked and the custom state’s value is “not-clicked”.
Another way you could go is to have a custom state with a state type of yes/no, and then you could use one workflow event with the handy trick that @adamhholmes describes in this thread.
Hope this helps.
Hey @mikeloc, that’s perfect.
TIL: It’s possible to have 2 workflow events for the same trigger !
This topic was automatically closed after 70 days. New replies are no longer allowed.