> So, you're saying that effectiveDate is requiredif state == 940?
> 

Yep.

> Try adding [0] to the end of the field* vars.
> 

That worked - thanks!  I've hacked together some client-side javascript for
this since there's not one in the validator natively - I'll try to work a
method up for equals.

Matt

> David
> 
> >Is it possible to require a field based on the value of 
> another field?  I
> >tried the following, but no dice:
> >
> >               <field property="effectiveDate"
> >                      depends="requiredif">
> >
> >                   <arg0 key="changeRequestFormEx.effectiveDate"/>
> >                   <var>
> >                     <var-name>field</var-name>
> >                     <var-value>state</var-value>
> >                   </var>
> >                   <var>
> >                     <var-name>fieldTest</var-name>
> >                     <var-value>EQUAL</var-value>
> >                   </var>
> >                   <var>
> >                     <var-name>fieldValue</var-name>
> >                     <var-value>940</var-value>
> >                   </var>
> >               </field>
> >
> >Thanks,
> >
> >Matt
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8. 
> http://join.msn.com/?page=features/junkmail
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to