# Can't submit a form with form = "formID" as a button's attribute

**URL:** <https://community.weweb.io/t/cant-submit-a-form-with-form-formid-as-a-buttons-attribute/5476>\
**Category:** Ask us anything\
**Created:** [November 19, 2023, 9:33pm UTC](https://community.weweb.io/t/cant-submit-a-form-with-form-formid-as-a-buttons-attribute/5476 "2023-11-19T21:33:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [November 19, 2023, 9:33pm UTC](https://community.weweb.io/t/cant-submit-a-form-with-form-formid-as-a-buttons-attribute/5476/1 "2023-11-19T21:33:06Z")

</div>

Hello, I’m running into a strange problem (this worked before), basically, the issue is, that when I’m using the form = “formID” set up as shown in the following screenshots, it doesn’t work at all. Just doesn’t trigger the form submit. All required fields are turned off.

 ![Screenshot 2023-11-19 at 22.29.25](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/b16866814a4c484b753d67c8ed43c8b676a34a40.png)  
 ![Screenshot 2023-11-19 at 22.29.31](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/3/3024ad75b3e57ec93286f2d7d863fffaf0ed415d.png)

Here is the DOM - Left and Right contain the fields. The top right button is the sender. I even tried flipping the DOM order, but with no success, I even tried to delete all the fields in the form, still seems to not work.

 ![Screenshot 2023-11-19 at 22.29.15](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/e40d3e86bf13543ff167230a6a3dea40e56f4f6f.png)

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [November 19, 2023, 9:51pm UTC](https://community.weweb.io/t/cant-submit-a-form-with-form-formid-as-a-buttons-attribute/5476/2 "2023-11-19T21:51:33Z")

</div>

Note for anyone. For some reason, you need to switch this to “Submit button”, not grape UX, but I’ll let it slide 😃

![Screenshot 2023-11-19 at 22.50.58](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/9eea2306a9e0ab72548bda162f06b8a1e0f469e8.png)

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [November 19, 2023, 10:22pm UTC](https://community.weweb.io/t/cant-submit-a-form-with-form-formid-as-a-buttons-attribute/5476/3 "2023-11-19T22:22:01Z")

</div>

the `ww-button` sets also the `type` automatically. For a normal button it’s set to `button`, and that would disable the default behaviour of form submission.
