[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? Thank you for your help. Take care! Nick - Nick Metrowsky Consulting System Administrator 303-684-4785 Office 303-684-4100 Fax [EMAIL PROTECTED] DigitalGlobe , An Imaging and Information Company http://www.digitalglobe.com - ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html
Re: [rt-users] RT 3.6.0 Custom Field Validation
On Thu, Jun 22, 2006 at 11:55:26AM -0600, Nick Metrowsky wrote: 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 ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html
Re: [rt-users] RT 3.6.0 Custom Field Validation
On Thu, Jun 22, 2006 at 01:17:07PM -0600, Nick Metrowsky wrote: 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 ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html
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 [EMAIL PROTECTED] ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html
RE: [rt-users] RT 3.6.0 Custom Field Validation
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 [EMAIL PROTECTED] DigitalGlobe (r), An Imaging and Information Company http://www.digitalglobe.com - -Original Message- From: Joshua Colson [mailto:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html