# Submit button on Form container does not trigger the Submit workflow

**URL:** <https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524>\
**Category:** Ask us anything\
**Created:** [November 23, 2023, 5:46am UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524 "2023-11-23T05:46:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pravictor](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@pravictor](https://community.weweb.io/u/pravictor)\
**Post date:** [November 23, 2023, 5:46am UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524/1 "2023-11-23T05:46:46Z")

</div>

Hello all,

I am facing an issue where I am unable to get the workflow triggered for ‘onSubmit’ action on a form to work in Preview mode. (Screen Recording attached) I can make it work in Debugger / Workflow mode

From the documentation, I have verified the following conditions are all met:

- is the workflow on the `Form container`? **Yes**
- is it triggered `On submit`? **Yes**
- is the form button a `Submit button`? (check the `Settings` tab of the button) **Yes**
- is the form button enabled? (check it’s not disabled in the `Settings` tab of the button) **Yes**
- is the submit button inside the form container? **Yes**

Please note that I have a repeating element inside the form (inside the Education div block)

Screen Recording: [Screen Recording 2023-11-23 at 11.05.58 AM.mov - Google Drive](https://drive.google.com/file/d/1BMKedhGUT9Ai--QrvrP8isCcl8-xSfTH/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![Mael](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mael/32/13246_2.png) [@Mael](https://community.weweb.io/u/Mael)\
**Post date:** [November 23, 2023, 5:37pm UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524/2 "2023-11-23T17:37:50Z")

</div>

Hello @pravictor,

I think the issue is that you have a workflow on your section “Content”. So only this workflow is executed. If you want to keep this workflow, in the workflow of your form, you can add an action “Custom Javascript” with the code `event.stopPropagation();`

Let me know if it’s working 🙂

---

<div class="post-metadata">

**Author:** ![pravictor](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@pravictor](https://community.weweb.io/u/pravictor)\
**Post date:** [November 23, 2023, 7:08pm UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524/3 "2023-11-23T19:08:15Z")

</div>

> [@Mael](#):
>
> event.stopPropagation();

Hi @Mael Thanks for responding. I tried doing what you suggested and I also tried deleting the workflow on “Content” to see if it solved the problem - however both did not work.

---

<div class="post-metadata">

**Author:** ![Mael](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mael/32/13246_2.png) [@Mael](https://community.weweb.io/u/Mael)\
**Post date:** [November 23, 2023, 9:34pm UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524/4 "2023-11-23T21:34:49Z")

</div>

Could you create a ticket on this app? I will take a look

> **[WeWeb - Support](https://support.weweb.io/)**
>
> Report a bug or ask a question to the WeWeb Team

---

<div class="post-metadata">

**Author:** ![pravictor](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@pravictor](https://community.weweb.io/u/pravictor)\
**Post date:** [November 24, 2023, 5:24am UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524/5 "2023-11-24T05:24:39Z")

</div>

@Mael Thanks, I have done it.

---

<div class="post-metadata">

**Author:** ![Mael](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mael/32/13246_2.png) [@Mael](https://community.weweb.io/u/Mael)\
**Post date:** [November 24, 2023, 9:10am UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524/6 "2023-11-24T09:10:13Z")

</div>

In your form container, you have set some with required. But you have hidden these inputs. When you click on the submit button, nothing is happening because you didn’t fill all required field. And your browser can’t display the message to tell you that this input is required because you hide it

---

<div class="post-metadata">

**Author:** ![pravictor](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@pravictor](https://community.weweb.io/u/pravictor)\
**Post date:** [November 24, 2023, 9:40am UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524/7 "2023-11-24T09:40:22Z")

</div>

That seems to have been the issue - thank you so much!

I am really enjoying building on Weweb btw, it’s a great and intuitive product 🙂

---

<div class="post-metadata">

**Author:** ![MyHeroVA](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/myherova/32/7207_2.png) [@MyHeroVA](https://community.weweb.io/u/MyHeroVA)\
**Post date:** [January 31, 2024, 5:47pm UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524/8 "2024-01-31T17:47:39Z")

</div>

Same issue here that Mael solved! I had bound data that was hidden. After I deleted those, button worked fine.

---

<div class="post-metadata">

**Author:** ![dpaget21](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@dpaget21](https://community.weweb.io/u/dpaget21)\
**Post date:** [March 12, 2025, 8:43am UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524/9 "2025-03-12T08:43:40Z")

</div>

I am having this exact issue but don’t seem to have any hidden inputs.

---

<div class="post-metadata">

**Author:** ![DanielL](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/daniell/32/13398_2.png) [@DanielL](https://community.weweb.io/u/DanielL)\
**Post date:** [March 12, 2025, 9:09am UTC](https://community.weweb.io/t/submit-button-on-form-container-does-not-trigger-the-submit-workflow/5524/10 "2025-03-12T09:09:58Z")

</div>

@dpaget21 you need to use the “Submit form” action: [Form container | WeWeb Documentation](https://docs.weweb.io/elements/form-container.html#submit-a-form)
