How to reset form fields in a modal?

I have some form fields in a modal. The modal is activated when clicking a button.

After filling out the form and continuing to the next tab, I closed the modal. When I reopen the modal, the fields still show the previously entered data.

How can I reset these fields upon re-opening of the modal?

You can reset the input value to empty with a simple code.

If you have 3 inputs, on button click, you can add this formula to set the input value to empty at the end of the workflow.

Screen Recording 2023-09-04 at 1.13.58 PM

Demo, without closing the modal:

Screen Recording 2023-09-04 at 1.16.18 PM

1 Like

Wow, didn’t even think of that. So simple. Thanks!

You also have a “Reset variable” action if needed :slight_smile: