emailRegEx = "^[A-Za-z0-9]+@[A-Za-z0-9]+\\.[A-Za-z]{2,}$";
e = input.Email_Address;
e = e.trim();
if(e.matches( emailRegEx ) == false)
{
errors.add("Email not in correct format");
}
I am using regex for validation instead of validation that comes with zoho because I am implementing a conditional validation. Some form fields are required depending on their visibility. Btw I'm using a stateless form for a reason.