# Clear form not working

**URL:** <https://community.weweb.io/t/clear-form-not-working/20375>\
**Category:** How do I?\
**Created:** [November 12, 2025, 9:06pm UTC](https://community.weweb.io/t/clear-form-not-working/20375 "2025-11-12T21:06:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredo22](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/fredo22/32/2283_2.png) [@fredo22](https://community.weweb.io/u/fredo22)\
**Post date:** [November 12, 2025, 9:06pm UTC](https://community.weweb.io/t/clear-form-not-working/20375/1 "2025-11-12T21:06:57Z")

</div>

### I’ve tried 3 different methods to clear this message field as part of my workflow. This video walks through the methods I’ve tried, and shows how none of them are working. Can anyone tell me what I’m doing wrong?

[https://www.loom.com/share/3259a12ff5594a8b93d4e83d04beb5f3](https://www.loom.com/share/3259a12ff5594a8b93d4e83d04beb5f3)

---

<div class="post-metadata">

**Author:** ![joseph](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joseph/32/11340_2.png) [@joseph](https://community.weweb.io/u/joseph)\
**Post date:** [November 13, 2025, 9:36am UTC](https://community.weweb.io/t/clear-form-not-working/20375/2 "2025-11-13T09:36:36Z")

</div>

I didn’t notice if you tried this but you can use the Reset Variable Values. This example is from the Ticketing App template. Though this shows the reset in the On submit workflow, you do this in a button too.

> **[Reset variable value | Documentation](https://docs.weweb.io/workflows/actions/reset-variable-value.html#use-cases)**
>
> Learn how to reset variables to their initial values in WeWeb workflows for form handling, state management, and data cleanup.

 ![reset-form](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/76c0eb4019bfc1a37c6c4d956ea6f02047f78801.png)

---

<div class="post-metadata">

**Author:** ![joseph](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joseph/32/11340_2.png) [@joseph](https://community.weweb.io/u/joseph)\
**Post date:** [November 13, 2025, 9:40am UTC](https://community.weweb.io/t/clear-form-not-working/20375/3 "2025-11-13T09:40:29Z")

</div>

Another idea is to ask AI to add a button that clears the form values and see what it generates.

---

<div class="post-metadata">

**Author:** ![Batik\_Okazov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/batik_okazov/32/12688_2.png) [@Batik\_Okazov](https://community.weweb.io/u/Batik_Okazov)\
**Post date:** [November 13, 2025, 10:08am UTC](https://community.weweb.io/t/clear-form-not-working/20375/4 "2025-11-13T10:08:21Z")

</div>

Hi Fred,

good job with the video. A visual demonstration always helps to understand the problem much faster.

1. I assume that “reset form” just can’t change anything inside a component (the green “Message” element in your elements tree). That’s why it doesn’t work.

2. The second approach with JS code generated by AI is untenable. Because the “Variable \*” option is empty, so the code doesn’t do any changes to any variable.

3. The third approach is similar to the first one. “Form container - form” just can’t affect data inside your “Message” component.

To make the “clear” button work you need to change the data inside the “Message” component. And for that you need to reset/change the variable containing your text example inside the message box.

I’d create a workflow inside the “Message” component to clear that variable. And then just call that workflow outside of the component - from the “Send message” workflow you demonstrated in the video.

Hope it helps.

---

<div class="post-metadata">

**Author:** ![fredo22](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/fredo22/32/2283_2.png) [@fredo22](https://community.weweb.io/u/fredo22)\
**Post date:** [November 13, 2025, 5:10pm UTC](https://community.weweb.io/t/clear-form-not-working/20375/5 "2025-11-13T17:10:45Z")

</div>

I did ask Weweb AI, and it added a step that didn’t work.

---

<div class="post-metadata">

**Author:** ![fredo22](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/fredo22/32/2283_2.png) [@fredo22](https://community.weweb.io/u/fredo22)\
**Post date:** [November 13, 2025, 5:24pm UTC](https://community.weweb.io/t/clear-form-not-working/20375/6 "2025-11-13T17:24:34Z")

</div>

I don’t know how to add a workflow inside a component. I didn’t create this component (I think I got it from the starter kit library). Is it even possible to edit someone else’s component that you downloaded?

---

<div class="post-metadata">

**Author:** ![fredo22](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/fredo22/32/2283_2.png) [@fredo22](https://community.weweb.io/u/fredo22)\
**Post date:** [November 13, 2025, 5:41pm UTC](https://community.weweb.io/t/clear-form-not-working/20375/7 "2025-11-13T17:41:34Z")

</div>

OK, so I successfully edited the Message component by adding 2 workflows: **Reset message field** Resets the variable value _message\_variable_. **Set message to ““** changes the _message\_value_ to ““. I set both of these workflows to _Allow execution from outside_. I’ve added an Execute component action step in my main workflow. I’ve tried executing both of my component workflows, and neither of them works. Any suggestions?

---

<div class="post-metadata">

**Author:** ![Batik\_Okazov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/batik_okazov/32/12688_2.png) [@Batik\_Okazov](https://community.weweb.io/u/Batik_Okazov)\
**Post date:** [November 13, 2025, 6:49pm UTC](https://community.weweb.io/t/clear-form-not-working/20375/8 "2025-11-13T18:49:25Z")

</div>

hard to tell without seeing your setup.

I’ve tested it on my side. Works well:

https://www.loom.com/embed/72a289d09dd44bfa9307238ce7e6ad12

I guess you didn’t bind text variable to your input “initial value”.

---

<div class="post-metadata">

**Author:** ![fredo22](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/fredo22/32/2283_2.png) [@fredo22](https://community.weweb.io/u/fredo22)\
**Post date:** [November 17, 2025, 7:40pm UTC](https://community.weweb.io/t/clear-form-not-working/20375/9 "2025-11-17T19:40:54Z")

</div>

thanks for your help. It turns out it was working, but I was targeting the wrong variable!
