Everyone,

 

I have two fields:

 

1.      trackingEnabled - checkbox
2.      repeatOffendersDaysBack - text (int) for number of days going
back to check

 

The rule for these fields are this:  if trackingEnabled is checked, then
the repeatOffendersDaysBack is required.  Otherwise,
repeatOffendersDaysBack is not.  I am trying to write my validation for
this.  I have something like the following:

 

<field property="repeatOffendersDaysBack" depends="validwhen">

      <arg0 key="repeatOffender.screen.error.repeatOffendersSince"/>    

<var>

        <var-name>test</var-name>

        <var-value>((trackingEnabled == null) or (*this* !=
null))</var-value>

</var>

</field>

 

My question is do I need to do anything special for checkbox comparisons
in the validwhen?  I have seen people saying to use null, or 'false',
'on', etc. and I am just trying to verify.  Thanks.

 

Daniel

Reply via email to