Everyone,

 

I am using the validator to validate an email address in a text field.
The field is not required, but when there is a value in there, I want it
to be a valid email address.  Here is my XML,

 

<field property="notificationBcc" depends="validwhen,email">

      <arg0 key="notification.pref.error.notificationbcc"/>

      <var>

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

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

      </var>                  

</field>

 

But when I enter the value '[EMAIL PROTECTED]' I get an error
message saying the field is required.  Any ideas?  Thanks.

 

Daniel

 

Reply via email to