RT 3.6.0 Custom Field Validation

Hi Everyone,

There is a new feature in RT 3.6.0 that allows one to set up Validation
on data entered into a custom field. The question I have is how does one
define new validations? Also, what syntax is required for setting up
validations?

Thank you for your help.

Take care!

Nick

Nick Metrowsky

Consulting System Administrator

303-684-4785 Office

303-684-4100 Fax

nmetrowsky@digitalglobe.com mailto:nmetrowsky@digitalglobe.com

DigitalGlobe ®, An Imaging and Information Company

http://www.digitalglobe.com http://www.digitalglobe.com

Hi Everyone,

There is a new feature in RT 3.6.0 that allows one to set up Validation
on data entered into a custom field. The question I have is how does one
define new validations? Also, what syntax is required for setting up
validations?

Nick,

It’s a combo box, so if the validation you want doesn’t exists you
can just type it in. The syntaz is Perl regular expression syntax,
so just refer to your favorite perl manual.

This is just from observation. I have used it much yet.

-Todd

Hi Todd,

Thank you for writing. So, based upon you message, the validation is
defined on a custom field by custom field basis. I sort of thought so,
as I could not find an option to set this up globally. Having a global
configuration capability may become a useful feature in the future, as
folks may want to choose from a library of validations; as opposed to
setting up validations on a field by field basis.

Take care!

Nick

Nick Metrowsky
Consulting System Administrator
303-684-4785 Office
303-684-4100 Fax
nmetrowsky@digitalglobe.com
DigitalGlobe ®, An Imaging and Information Company
http://www.digitalglobe.comFrom: Todd Chapman [mailto:todd@chaka.net]
Sent: Thursday, June 22, 2006 12:11 PM
To: Nick Metrowsky
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RT 3.6.0 Custom Field Validation

Hi Everyone,

There is a new feature in RT 3.6.0 that allows one to set up
Validation
on data entered into a custom field. The question I have is how does
one
define new validations? Also, what syntax is required for setting up
validations?

Nick,

It’s a combo box, so if the validation you want doesn’t exists you
can just type it in. The syntaz is Perl regular expression syntax,
so just refer to your favorite perl manual.

This is just from observation. I have used it much yet.

-Todd

Hi Todd,

Thank you for writing. So, based upon you message, the validation is
defined on a custom field by custom field basis. I sort of thought so,
as I could not find an option to set this up globally. Having a global
configuration capability may become a useful feature in the future, as
folks may want to choose from a library of validations; as opposed to
setting up validations on a field by field basis.

I agree. Lots of extensions could be made for different types
of validation. Looking at the RT code, I’m surprised there is
no Callback for adding new ones. I’m sure Jesse would take
a patch for that.

-Todd

I agree. Lots of extensions could be made for different types
of validation. Looking at the RT code, I’m surprised there is
no Callback for adding new ones. I’m sure Jesse would take
a patch for that.

You could just edit html/Admin/CustomFields/Modify.html and add them in
to the Validation section. It isn’t ideal, but it may help.

Joshua Colson jcolson@voidgate.org

Hi Joshua,

Thank you for writing and the location of the code which contains the
validation definitions. It would not be too bad to add the various
validations here, as it is better than the alternative of typos when
someone tries to enter a validation when creating a custom field.
Ideally, this data showed be stored in the database somewhere and the
contents maintained via the Global configuration option. At least I know
where to make a change when the time comes to use this capability.

Take care!

Nick

Nick Metrowsky
Consulting System Administrator
303-684-4785 Office
303-684-4100 Fax
nmetrowsky@digitalglobe.com
DigitalGlobe ®, An Imaging and Information Company
http://www.digitalglobe.com-----Original Message-----
From: Joshua Colson [mailto:jcolson@voidgate.org]
Sent: Thursday, June 22, 2006 1:52 PM
To: Todd Chapman
Cc: Nick Metrowsky; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RT 3.6.0 Custom Field Validation

On Thu, 2006-06-22 at 15:41 -0400, Todd Chapman wrote:

I agree. Lots of extensions could be made for different types
of validation. Looking at the RT code, I’m surprised there is
no Callback for adding new ones. I’m sure Jesse would take
a patch for that.

You could just edit html/Admin/CustomFields/Modify.html and add them in
to the Validation section. It isn’t ideal, but it may help.

Joshua Colson jcolson@voidgate.org