Hi;

RT-3.8.7


Can some one give me a brief explanation of how custom field validation works 
through the code.
I tracked back as far as lib/Record.pm :: _AddCustomFieldValue;

However I am not sure how/where the following happens:
unless ( $cf->ValidateValue( $args{'Value'} ) ) {
        return ( 0, $self->loc("Invalid value for custom field") );
}

I cannot find ValidateValue any where !!??

The reason for my question is the need to create my own CF validation pattern I 
would like to extend
'(?#Year)^[12]\d{3}$',
To also include hours and minutes,
so values to my custom field should be yyyy-mm-dd hh:mm

Is this possible and how?

Regards;
Roy


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Reply via email to