Hi,

I'm trying to use struts plugin validator to check a big form.. and it works
well.. but I've a little pb with validwhen constraint;

I've written something like this :

           <field property="enterpriseName"
               depends="validwhen">
               <arg0 key="error.inscription.entreprise.nom" />
               <var>
                   <var-name>test</var-name>
                   <var-value>((subscriptionType=="2")or
(subscriptionType=="3")or(subscriptionType=="4"))</var-value>
               </var>
           </field>

I just want to check the field 'enterpriseName' is not empty when I submit,
but only if my select field 'subscriptionType" is more than 1. (2,3 or4)

It does not work.

why ??


--
~ jebmail ~

Reply via email to