Thanks Eleanor

Duh!

On 5/10/2010 2:23 PM, Eleanor J. Evans [Panix Staff] wrote:
On Mon, May 10, 2010 at 02:15:36PM -0400, Jeff Blaine wrote:
Name:        Occurred Date
Applies to:  Tickets
Type:        Enter multiple values
Validate:    (?#YYYY-MM-DD)^\d\d\d\d-\d\d-\d\d$

Creating a new ticket via the web GUI is rejected with:
     Occurred Date: Input must match [YYYY-MM-DD]

It must match the regex, so include the optional within it:

(?#Digits)^[\d.]*$

instead of the provided

(?#Digits)^[\d.]+$

for example.

(?#YYYY-MM-DD)^(\d\d\d\d-\d\d-\d\d|)$



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

Reply via email to