# This value is too long. It should have 191 characters or less

**URL:** https://forum.mautic.org/t/this-value-is-too-long-it-should-have-191-characters-or-less/32146
**Category:** Mautic 4 Install/Upgrade Support
**Created:** [May 24, 2024, 4:29am UTC](https://forum.mautic.org/t/this-value-is-too-long-it-should-have-191-characters-or-less/32146 "2024-05-24T04:29:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![yochay11](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yochay11/32/7301_2.png) [@yochay11](https://forum.mautic.org/u/yochay11)
#### Post date: [May 24, 2024, 4:29am UTC](https://forum.mautic.org/t/this-value-is-too-long-it-should-have-191-characters-or-less/32146/1 "2024-05-24T04:29:25Z")

</div>

Hi i am using the api to insert value of Custom Field i created.

Whe i try to insert data to a text field i am getting the message the value should be 191 or less.

I don’t higher limit on the database but i wasn’t able to find how to adjust the limit on the files to make it work.

Anyone have an idea on how to do that?

---

<div class="post-metadata">

### Author: ![yochay11](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yochay11/32/7301_2.png) [@yochay11](https://forum.mautic.org/u/yochay11)
#### Post date: [May 24, 2024, 4:52am UTC](https://forum.mautic.org/t/this-value-is-too-long-it-should-have-191-characters-or-less/32146/2 "2024-05-24T04:52:10Z")

</div>

Ok, a bit messy but i found out that converting the field to textarea instead of just text fix the problem.

I have to change the fields type from the database as well.

---

<div class="post-metadata">

### Author: ![srdjan9791](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/srdjan9791/32/8032_2.png) [@srdjan9791](https://forum.mautic.org/u/srdjan9791)
#### Post date: [April 6, 2025, 6:17pm UTC](https://forum.mautic.org/t/this-value-is-too-long-it-should-have-191-characters-or-less/32146/3 "2025-04-06T18:17:20Z")

</div>

Hi,  
I think that You can change text field length for custom fields /app/bundels/LeadBundle/Field/SchemaDefinition.php and for the forms /app/bundels/FormBundle/Form/Type/FieldType.php but you also need to change the length in the database.
