Jump to content

Email Address Validation


Tissot
 Share

This topic is 5782 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi!

This is how I’m doing it until now:

If(IsEmpty(kEMail);0; If(Position (kEMail;"@" ;1 ; 1 ) > 0 and Position (kEMail;"." ;1 ; 1 ) > 0;1;0))

This Calculation is perfect until it comes to deleting the Email field. Then the Validation won't let me delete the field. Any solution?

Regards.

Ron

Link to comment
Share on other sites

I suggest you dont actually use validation but instead give the user some sort of visual indication that the email is invalid, i.e. changing the contents to red... Much more friendly - If you want a real email validation thing (go to www.briandunning.com click Custom Functions on the left and search email).

Finally, don't use IsEmpty()...

Also the below format is a bit more ... slipstreamed and clean.

Oh and if you actually need to know whether an email exists so that you can send an email (i.e. its for a script) -- just add a calc field to check it.

Case(

IsEmpty(kEMail); 0 ;

Position (kEMail;"@" ;1 ; 1 ) > 0 and Position (kEMail;"." ;1 ; 1 ) > 0 ; 1;

0)//Default Value and End Case Statement

Link to comment
Share on other sites

This topic is 5782 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.