The email validation will be shown by default. If a value is added to the contactNumber, the email will not be required. However, if we remove the value from the contact Number, the email will become required.
Make the email field optional when a value is added to the contact Number field; otherwise, keep it required.
New contributor
Ankur Tyagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.