# Resetting form fields after submit and fetch collection in workflows

**URL:** <https://community.weweb.io/t/resetting-form-fields-after-submit-and-fetch-collection-in-workflows/19732>\
**Category:** Ask us anything\
**Tags:** workflows, supabase\
**Created:** [August 21, 2025, 7:37am UTC](https://community.weweb.io/t/resetting-form-fields-after-submit-and-fetch-collection-in-workflows/19732 "2025-08-21T07:37:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kappa](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@kappa](https://community.weweb.io/u/kappa)\
**Post date:** [August 21, 2025, 7:37am UTC](https://community.weweb.io/t/resetting-form-fields-after-submit-and-fetch-collection-in-workflows/19732/1 "2025-08-21T07:37:24Z")

</div>

### 

Hi!

I am using a Form component in WeWeb connected to Supabase. Submitting the form and inserting into the database works fine, but I am struggling to properly reset the form fields afterwards.

From what I can tell, there seems to be a difference between inputs that are bound to variables and inputs that are just fields inside the form (local data). When I reset a variable, the UI updates correctly. But when I try to reset the form’s local fields, the values may clear in the data structure but the inputs on screen do not visually reset.

Is there a recommended approach to resetting a Form component after submit, without having to convert everything into variables?

A bit off-topic, but I also noticed that using Fetch Collection inside a workflow sometimes throws errors in production, while it works fine in the editor. Is this expected, or is there a best practice for using Fetch Collection within workflows?

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![Agustin\_Carozo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/agustin_carozo/32/13231_2.png) [@Agustin\_Carozo](https://community.weweb.io/u/Agustin_Carozo)\
**Post date:** [August 21, 2025, 5:32pm UTC](https://community.weweb.io/t/resetting-form-fields-after-submit-and-fetch-collection-in-workflows/19732/2 "2025-08-21T17:32:01Z")

</div>

Hi Kappa 👋

I’d like to see an image on how your form is setup, but I can tell you already that a good practice is to bind your form inputs into a variable which is also added to the “Initial Value” so when you reset that data you are also reseting the initial text the input shows.

---

<div class="post-metadata">

**Author:** ![kappa](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@kappa](https://community.weweb.io/u/kappa)\
**Post date:** [August 22, 2025, 10:31am UTC](https://community.weweb.io/t/resetting-form-fields-after-submit-and-fetch-collection-in-workflows/19732/3 "2025-08-22T10:31:17Z")

</div>

Hi Agustin!

Thanks for your response 🙂

I’ve bound the variable to the initial value, added a workflow on the input (on change → update variable), and then on the form, after the insert, I added the “reset variable” action.

It seems to be working!
