Validate optional email


I’ve a form with the following item :

<item type="input" validate="ValidEmail" inputWidth="260" name="email" label="E-mail"/>

The validation of the email works great but i would like keep this item optional (so the validation should be ok if no email is filled).

Is there a way to solve this need inside the XML declaration file ?

Thanks four your answer :slight_smile:


It can be done only by creating custom validation rule … tion_rules