Sometimes, for whatever reason, it is preferred to bypass Espo's built in field validation rules to avoid triggering the "Field Validation Error" message and interrupting the back end program flow.
Fortunately, this is now possible using metadata settings, so it is not necessary to do any coding to accomplish this.
Simply add these two parameters in your custom entity entityDefs json file under the field for which you want to bypass all validations:
For participants that do not mind writing code, the documentation https://docs.espocrm.com/development...validationlist has information on how to define and invoke custom back end validations in case this is the preferred solution.
Fortunately, this is now possible using metadata settings, so it is not necessary to do any coding to accomplish this.
Simply add these two parameters in your custom entity entityDefs json file under the field for which you want to bypass all validations:
Code:
"validationList": [], "mandatoryValidationList": []
For participants that do not mind writing code, the documentation https://docs.espocrm.com/development...validationlist has information on how to define and invoke custom back end validations in case this is the preferred solution.
Comment