[rt-users] Non-Mandatory CF is being required
Eleanor J. Evans [Panix Staff]
eje at panix.com
Mon May 10 14:23:40 EDT 2010
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|)$
--
Eleanor J. (Piglet) Evans, eje at panix.com
Customer Support, (212) 741-4400
More information about the rt-users
mailing list