# Button Type creates incorrect buttontype attribute

**URL:** <https://forum.pinegrow.com/t/button-type-creates-incorrect-buttontype-attribute/6217>\
**Category:** Bug Reports\
**Tags:** bug\
**Created:** [February 5, 2022, 8:57am UTC](https://forum.pinegrow.com/t/button-type-creates-incorrect-buttontype-attribute/6217 "2022-02-05T08:57:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fakesamgregory](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/fakesamgregory/32/3903_2.png) [@fakesamgregory](https://forum.pinegrow.com/u/fakesamgregory)\
**Post date:** [February 5, 2022, 8:57am UTC](https://forum.pinegrow.com/t/button-type-creates-incorrect-buttontype-attribute/6217/1 "2022-02-05T08:57:47Z")

</div>

When I create a button and select “submit” in editor the resulting html is `buttontype="submit"` as opposed to `type="submit"`.

This, of course, works for any button type selected.

`<button buttontype="button">Join</button>`

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/e/e71cb36cd4174db098691e0860c1de8083c10de2.png)

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [February 5, 2022, 11:36am UTC](https://forum.pinegrow.com/t/button-type-creates-incorrect-buttontype-attribute/6217/2 "2022-02-05T11:36:42Z")

</div>

Hi @fakesamgregory,  
Thanks for the feedback. We will look into it.  
Cheers,  
Bob

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [February 5, 2022, 11:40pm UTC](https://forum.pinegrow.com/t/button-type-creates-incorrect-buttontype-attribute/6217/3 "2022-02-05T23:40:13Z")

</div>

Thanks @fakesamgregory. This has been fixed and pushed out with PG Live.
