Change between 2 states of a button

I have a single button that I want to use for 2 different purposes: Entering an editing mode to modify some input fields, and then exiting the editing mode to save those fields.
I have created a “yes/no” custom state named “editing?” which is by default no.
I have also created a conditional to change the button’s label depending on the custom state.
And I created 2 separate workflows with the “only when” feature to change between the custom states.
The problem is that the button’s label doesn’t seem to change.
I understand that they seem to cancel each other out, but I don’t know how to fix it


Screenshot_2
Screenshot_3

You’ve got no conditions on your workflows… so both of them will run each time the button is clicked, essentially cancelling each other out (i.e. the state will change to ‘yes’, then back to ‘no’).

So move your conditions onto the workflows, rather than on the actions.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.