# What is the best way to add pre-created fields to forms in Mautic?

**URL:** <https://forum.mautic.org/t/what-is-the-best-way-to-add-pre-created-fields-to-forms-in-mautic/27768>\
**Category:** Product Support\
**Created:** [April 19, 2023, 2:59pm UTC](https://forum.mautic.org/t/what-is-the-best-way-to-add-pre-created-fields-to-forms-in-mautic/27768 "2023-04-19T14:59:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)\
**Post date:** [April 19, 2023, 2:59pm UTC](https://forum.mautic.org/t/what-is-the-best-way-to-add-pre-created-fields-to-forms-in-mautic/27768/1 "2023-04-19T14:59:41Z")

</div>

Hello everyone,

I am creating a theme and I would like my theme to have pre-created fields such as name, email, and message when creating a form, instead of the user create then one by one.

I attempted to manually add these fields to the form.html.twig file, but the information is not sent after the user fills it out.

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/18b97b7d0ad453a89787d5ee544abdf6dbede1c1.png)

If anyone knows if this is possible or not to achieve only with the theme, I would greatly appreciate your help!

Thank you.

---

<div class="post-metadata">

**Author:** ![asad786](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/asad786/32/8990_2.png) [@asad786](https://forum.mautic.org/u/asad786)\
**Post date:** [April 25, 2023, 5:11am UTC](https://forum.mautic.org/t/what-is-the-best-way-to-add-pre-created-fields-to-forms-in-mautic/27768/2 "2023-04-25T05:11:46Z")

</div>

You can clear your mautic cache firstly and then create a different form with only one field like email or name etc, and then submit that form anywhere by rendering it, and then go to that form in mautic and see form submission section , you will see the form submitted data there.

---

<div class="post-metadata">

**Author:** ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)\
**Post date:** [April 26, 2023, 9:41am UTC](https://forum.mautic.org/t/what-is-the-best-way-to-add-pre-created-fields-to-forms-in-mautic/27768/3 "2023-04-26T09:41:15Z")

</div>

Hi Mister @asad786

Thanks for your reply. I did exacly now as you explained, and sadly I am not receiving any data:

In the form results, It doesn’t add the column with the respected field that I created.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2f2712b2ed505e09b176dcaf64326883ebafea19.png)

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [April 26, 2023, 10:02am UTC](https://forum.mautic.org/t/what-is-the-best-way-to-add-pre-created-fields-to-forms-in-mautic/27768/4 "2023-04-26T10:02:33Z")

</div>

Is your question: how to make a Form Template in a way, that Fields are already added?

Joey

---

<div class="post-metadata">

**Author:** ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)\
**Post date:** [April 26, 2023, 10:03am UTC](https://forum.mautic.org/t/what-is-the-best-way-to-add-pre-created-fields-to-forms-in-mautic/27768/5 "2023-04-26T10:03:36Z")

</div>

Hi Mister @joeyk

Thats correct yes

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [April 26, 2023, 10:09am UTC](https://forum.mautic.org/t/what-is-the-best-way-to-add-pre-created-fields-to-forms-in-mautic/27768/6 "2023-04-26T10:09:17Z")

</div>

No, you can’t do that.  
The fields are saved in the DB in multiple tables.  
The fields themseves have nothing to do with Templates.

---

<div class="post-metadata">

**Author:** ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)\
**Post date:** [April 26, 2023, 10:12am UTC](https://forum.mautic.org/t/what-is-the-best-way-to-add-pre-created-fields-to-forms-in-mautic/27768/7 "2023-04-26T10:12:53Z")

</div>

Thanks once again for your help Mister @joeyk  
Your help really means a lot 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [April 27, 2023, 10:13pm UTC](https://forum.mautic.org/t/what-is-the-best-way-to-add-pre-created-fields-to-forms-in-mautic/27768/8 "2023-04-27T22:13:17Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
