[rt-users] Custom Field Validation Question

Ruslan Zakirov ruslan.zakirov at gmail.com
Tue Oct 24 23:10:48 EDT 2006


'(?#DateDDMMYYYY)^((0[1-9]|[12][0-9]|3[01])[-/.](0[1-9]|1[012])[-/.](19|20)\d\d)?'

On 10/25/06, Mathew Snyder <theillien at yahoo.com> wrote:
> I've added to our development server one of the custom field validations
> that was posted to the mailing list a while ago by Nick Metrowsky.  The
> particular validation I've added is
> '(?#DateDDMMYYYY)^(0[1-9]|[12][0-9]|3[01])[-/.](0[1-9]|1[012])[-/.](19|20)\d\d',
>
> The question I have is whether or not I can make it optional as it will
> only apply to tickets that involve delivery of things such as hardware
> provisioning or application development.
>
> Is there a way to validate the input only if there is something to
> validate and ignore it if it is blank?
>
>
> Thanks,
> Mathew Snyder
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>


-- 
Best regards, Ruslan.



More information about the rt-users mailing list