you cannot create a field without the type.
custom/Espo/Custom/Resources/metadata/entityDefs/<your-entity>.json
substitute <your-entity> with right value. If the vat field is in Lead then <your-entity> is Lead, so your file will be custom/Espo/Custom/Resources/metadata/entityDefs/Lead.json
Code:
{
"fields": {
"vat": {
"type": "varchar",
"maxLength": 255,
"notNull": true,
"trim": true,
"required": true,
"readOnly": false,
"unique": true
}
}
}

Leave a comment: