Announcement

Collapse
No announcement yet.

Change Max Length Enum - Link fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change Max Length Enum - Link fields

    Hi there,

    I would like the change the Max Length in some fields.

    In a Varchar field, Espo gives the possibility to change the Max Length. - Check attached Photo


    For fields like Enum and Link, I don't have the possibility to change the Length. It goes directly to 255. - Check attached Photo


    Do you know a way to change the fields Length?

    Thanks in advance.

  • #2
    Hi,
    You cannot do it via UI, so you need to define the "maxLength" length parameter in a correspondent JSON file in the
    /custom/Espo/Custom/Resources/metadata/entityDefs directory. For example, add this code to the desired field's parameters:
    Code:
    "maxLength": 100,
    The system can automatically increase this parameter in DB, but not decrease it. So after you set the "maxLength" in a .json file, you need to open your DB and change the length of this column manually to 100 as well. Make rebuild in the end.

    Comment

    Working...
    X