You need to sign in to do that
Don't have an account?
Dave The Rave
Validation Formula to allow blank value & REGEX for email
The REGEX code below works perfectly, but I now need to allow for the email field also to be blank.
NOT(REGEX(Email ,('[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+')))
Can I incorporate NOT ISBLANK( Email ) into the statement above so:
A user can enter an email in the correct format as above or the user does not have to enter an email address at all?
Thanks,
Dave
NOT(REGEX(Email ,('[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+')))
Can I incorporate NOT ISBLANK( Email ) into the statement above so:
A user can enter an email in the correct format as above or the user does not have to enter an email address at all?
Thanks,
Dave
All Answers
That should work, do you see any error can you try and post if you see any errors?
Thanks,
(NOT(REGEX(Email,('[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+')))) OR (NOT(ISBLANK) Email)
I do not think the format is correct, not enough brackets () ???. So Email is not an obligatory field
The statement NOT(ISBLANK(Email)) does work on its own though and also the REGEX, it is just a case of combining them together in the right formula.