Hi
Suppose i have entry text fields on a jsp, named ttype
and comment,
i want to add a validation saying that if ttype='2',
then comment cannot be blank, if ttype='3' or any
other value then comment can be blank,

what i am trying is following
<form name="ContractApprovalForm">
 <field property="comment" depends="validWhen">
        <arg0 key="errors.comment" />
         <var>
        <var-name>test</var-name>
<var-value>(ttype==2) and (comment !=
null)</var-value>
        </var>
 </field>
</form>
Will this work

Ashish


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to