Check if condition when button is clicked

Im new to Bubble and I wanted to do the following.

When a user clicks a button, i wanted to check a condition. If the condition is true, then i have to work on workflow 1. If the condition is false, then I have to work on workflow2.

Eg: if user fills a input field, then copy it to clipboard. If not, show a toast message.

Is this possible?

Hi there, @s.inshaf… one way to do what you described is to have two workflow events associated with clicking the button, and put conditions on the events so each one runs only when a condition is true. So, something like this…

Then, put the appropriate action(s) in the events, and you should be good to go.

Hope this helps.

Best…
Mike

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