Re: Validation rule writing

2006-12-15 Thread Laurie Harper
What Chris said, plus this: there's no validation rule named 'areaCodeMask' or 'phoneMask'; you want just 'mask' as the rule name. See the validator documentation for examples. Also, is validation working at all for you? For example, is it correctly detecting errors for the properties you h

Re: Validation rule writing

2006-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thom, Thom Burnett wrote: > I'm trying to validate two fields - area code and phone number (as nnn- > no areacode in that input). > > [snip] > > phoneFormatMask > ^[0-9]{3}-[0-9]{4}$ This regexp looks good. Have you checked th