One button two states?

What i am trying to do is create on and off buttons. Meaning a button is click the state is set to ‘yes’ but if it is clicked again it will set the state to ‘no’.

I cant seem to figure this out. When i create two workflow steps they basically cancel each other out. I cant see to do and IF on the steps.

If set to no, run this step. If set to yes, run this step.

Can anyone help me with this???

The alternative is the check box element, but it doesnt look nearly as good.

I appreciate any help. Thank You.

Create two on click workflows for the button, where each has an “only when” condition. So it reads like:

1st workflow = “when button X is clicked and state name = “yes””

  • action in workflow would be to set button state to “no”

2nd workflow = “when button X is clicked and state name = “no””

  • action in workflow would be to set button state to “yes”
3 Likes

Hey Thank you so much. I never thought this through enough and came up with the idea of having two different workflows. I kept putting the steps in the same click action. Wow… Genius. Haha. Thank you!

Great @ben4! Would you please select the post that fixed your issue and click the Solution checkbox.

image

This will work, but it’s not the best way. See the “Cool with Boole” video for how to best invert Boolean states.

1 Like

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