Andy Kriger ([EMAIL PROTECTED]) wrote: > I have a validation rule that looks like this... > > <field property="phoneExt" > depends="mask"> > <arg0 key="phone"/> > <arg1 key="phone.ext"/> > <var> > <var-name>mask</var-name> > <var-value>^\s*\d*\s*$</var-value> > </var> > </field> > > However, it considers the phoneExt field required. Can anyone tell me why? > I want the phoneExt field to be optional, and if filled out, to use the > given mask. I believe this has been answered several times and that you just need the newest validation-rules.xml file which makes mask optional if not filled in, and leave the required up to the depends="required,mask"
Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, <[EMAIL PROTECTED]> http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "The package said 'Windows 95 or better', so I installed Linux" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]