hi,
I want my validation.xml to only check for a null if certain options are selected from a dropdown. So far I have
<field property="empFDServiceStartDate" depends="requiredif, date">
<arg0 key="Service Start date" resource="false"/>
<var>
<var-name>field[0]</var-name>
<var-value>moverChangeType</var-value>
</var>
<var>
<var-name>fieldTest[0]</var-name>
<var-value>EQUALS</var-value>
</var>
<var>
<var-name>fieldValue[0]</var-name>
<var-value>Conversion</var-value>
</var>
</field>
When the value "Conversion" is selected from the moverChangeType dropdown, I was hoping that the empFDServiceStartDate field would be checked for nulls before being saved. At the moment this doesn't work and it allows me to save nulls.
Any idea?
I am tied to struts 1.1 and therefore can't use newer commands.
M