[Vtigercrm-developers] extend Validation engine

Alan Lord alanslists at gmail.com
Wed Feb 11 08:34:03 GMT 2015


On 11/02/15 08:22, Uma S wrote:
> Hi Alan,
>
> /If I want to have multiple "layers" of validation so that for example I
> must do a custom check to make sure some other module record contains
> the right value and then use one of the standard validators *as well* on
> the same field, how would I do this?/
> /
> /
> Sorry! I am not clear on this above point. Do you mean you are looking
> for how to use existing validator's on your custom field?

No, not a custom field. It might not even be a custom module.

We frequently need to apply customer-specifc validation routines.

For example, suppose I am editing an Account record (example the phone 
number field) and before I am allowed to save this field I must check 
that something is valid in a related module (which might be custom or 
might be a normal one, like an Invoice for example...).

If my custom validation rule works, then that phone field will still 
need to run the standard validation in Vtiger_PhoneValidator_Js.

Does this make sense?

Alan








More information about the vtigercrm-developers mailing list