You have to play around with it a bit. Try something like this: <field property="users.userDate" depends="date"> <arg0 key="user.date"/> <arg0 name="date" key="The format of the user date " resource="false" /> <var> <var-name>datePattern</var-name> <var-value>MM/dd/yyyy</var-value> </var> </field>
Last your form name that this field declaration is in better be "user" else the "user.date" is incorrect. Also your use of "users.userDate" is different from what I do. I just include the name of the property on the form. So if your Form name is "user" (not "User" or "users") then you can just put "userDate" there. hth > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2003 3:59 PM > To: [EMAIL PROTECTED] > Subject: validator > > > Hello all: > > I'm having problems using the Validator plugin to check a date field. > > In the form i have a simple textbox and I'm using the following > validation: > > <field property="users.userDate" depends="date"> > <arg0 key="user.date"/> > <var> > <var-name>datePattern</var-name> > <var-value>MM/dd/yyyy</var-value> > </var> > </field> > > > On submit I get the error: "datePattern has no properties". > I traced down the error to a line of code where de length of the > variables is tested: > if(datePattern.lenght>0){ > > > This code is generated by Validator so I don't know what to do about it. > > Any ideas? > > > > Thanks in advanced. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]