Jump to content
Sign in to follow this  
Tina H

Validate the email address

Recommended Posts

I am stuck.

trying to write a script that validates the email address that the user enter's into my iwp.

all i want to do is check to see if there is a "@" sign in the field somewhere.

I have used position and length with the right and the left text functions, and i can't seem to get it to work.

any help would be appreciated

Thanks

Tina

Share this post


Link to post
Share on other sites

I figured it out, never mind.

Sticking with it pays off I guess in the end!

my solution was

If[Position(email; "@" ; 1 ; 1 ) = 0

it's bad so notify them about it before continuing

figured it out that position gives the position number so if it isn't there it would be giving a zero as a response.

anyway, thought i would say what i did.

Thanks

Tina

Share this post


Link to post
Share on other sites

or you could get a bit fancier and use this custom function: IsValidEmail

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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