Make thing at first click and then Make changes afterwards?

I have a save button on my app where it will save 3 input fields
what I want to happen is that at first click it will make a thing on DB and then on 2nd click afterwards to make changes?

How to achieve this?

Thank you!

1 Like

Use a custom state to determine whether it’s the first or the second click, and the run the workflows accordingly

i.e. the first time the button is clicked, created the thing in the database and set a custom state value on the button so you know it’s been clicked once.

Then when the button is clicked again (and the custom state value shows that it’s the second click), make the changes to the thing.

Thank you this worked! :slight_smile:

1 Like

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