# Can't create numeric custom field

**URL:** <https://forum.mautic.org/t/cant-create-numeric-custom-field/24663>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [July 2, 2022, 2:17pm UTC](https://forum.mautic.org/t/cant-create-numeric-custom-field/24663 "2022-07-02T14:17:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![roblefko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/roblefko/32/4958_2.png) [@roblefko](https://forum.mautic.org/u/roblefko)\
**Post date:** [July 2, 2022, 2:17pm UTC](https://forum.mautic.org/t/cant-create-numeric-custom-field/24663/1 "2022-07-02T14:17:20Z")

</div>

**Your software**  
My Mautic version is: 4.4.0  
My PHP version is: 7.4.30  
My Database type and version is: MariaDB 10.3.34

**Your problem**  
My problem is: I’m moving from shared hosting to Digital Ocean, and recreating my working Mautic instance. I’ve always used a custom field for the contact’s age. When I attempt to create a custom field with a data type of Number, I get the following error upon saving the field:  
**This form should not contain extra fields.**

If I change the data type to Text, the field saves without an error.

These errors are showing in the log: None

Steps I have tried to fix the problem: I’ve tried changing the rounding mode and precision, but that does not fix the problem.

 ![Mautic error](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/33869ba761bc60f8caafd96554e34ccdad6b417e.png)

---

<div class="post-metadata">

**Author:** ![roblefko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/roblefko/32/4958_2.png) [@roblefko](https://forum.mautic.org/u/roblefko)\
**Post date:** [July 3, 2022, 12:11am UTC](https://forum.mautic.org/t/cant-create-numeric-custom-field/24663/2 "2022-07-03T00:11:11Z")

</div>

Update: I get the same error when I try to create a custom field with data type phone. I haven’t tried all of the different data types, but I’ve seen that text and email types work.

---

<div class="post-metadata">

**Author:** ![roblefko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/roblefko/32/4958_2.png) [@roblefko](https://forum.mautic.org/u/roblefko)\
**Post date:** [July 3, 2022, 12:16am UTC](https://forum.mautic.org/t/cant-create-numeric-custom-field/24663/3 "2022-07-03T00:16:36Z")

</div>

I’ve found a work-around: I am able to clone an existing field that has the right data type. I’m concerned, though, that the fact that I can’t create the field may be masking a larger problem.

---

<div class="post-metadata">

**Author:** ![roblefko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/roblefko/32/4958_2.png) [@roblefko](https://forum.mautic.org/u/roblefko)\
**Post date:** [July 3, 2022, 3:08am UTC](https://forum.mautic.org/t/cant-create-numeric-custom-field/24663/4 "2022-07-03T03:08:56Z")

</div>

I dug a bit deeper into this by first adding a new test numeric field to my Mautic 4.3 implementation. The field was added with no issue. I then upgraded that implementation to Mautic 4.4 and repeated the test. After the upgrade, I am unable to add field that are numeric. I’m assuming that this is a bug, and will be fixed.

---

<div class="post-metadata">

**Author:** ![EdwardC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/edwardc/32/693_2.png) [@EdwardC](https://forum.mautic.org/u/EdwardC)\
**Post date:** [July 5, 2022, 9:46am UTC](https://forum.mautic.org/t/cant-create-numeric-custom-field/24663/5 "2022-07-05T09:46:13Z")

</div>

Same here… anyone have a solution. I tried to use their new TextArea which support html and getting that same error as well “This form should not contain extra fields” when trying to add a new field.

---

<div class="post-metadata">

**Author:** ![EdwardC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/edwardc/32/693_2.png) [@EdwardC](https://forum.mautic.org/u/EdwardC)\
**Post date:** [July 6, 2022, 3:27am UTC](https://forum.mautic.org/t/cant-create-numeric-custom-field/24663/6 "2022-07-06T03:27:24Z")

</div>

Really hope someone can help with this as the TextArea with HTML support is extremely useful. Is there a way we can manually create it in the database directly while a bug fix is out

---

<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:** [July 10, 2022, 7:07am UTC](https://forum.mautic.org/t/cant-create-numeric-custom-field/24663/7 "2022-07-10T07:07:20Z")

</div>

This fix is working:

> <https://github.com/mautic/mautic/pull/11321>
>
> | Q | A
> | --------------------------------…------ | ---
> | Bug fix? (use the a.b branch) | \[x\]
> | New feature/enhancement? (use the a.x branch) | \[\]
> | Deprecations? | \[\]
> | BC breaks? (use the c.x branch) | \[\]
> | Automated tests included? | \[\] 
> | Related user documentation PR URL | mautic/mautic-documentation#... 
> | Related developer documentation PR URL | mautic/developer-documentation#... 
> | Issue(s) addressed | Fixes #11299
> 
> \#### Description:
> 
> Fixes #11299
> 
> \<a href="https://gitpod.io/#https://github.com/mautic/mautic/pull/11321"\>\<img src="https://gitpod.io/button/open-in-gitpod.svg"/\>\</a\>

Probably will be included in 4.4.1.  
Until then you can apply (1 line of code)
