cancel
Showing results for 
Search instead for 
Did you mean: 

Email Validation in Adobe Forms

Former Member
0 Kudos

Hi,

I have a text field in adoe forms,Where i want the user to enter only the mail id format.so in the object property, under filed tab I have set the Field Format and Display pattern to A'@'A'.'AAA and in value tab validation pattern as AA'@'AA'.'AAA and binding data pattern as AA'@'AA'.'AAA.So now I am able to enter as only a.b.com ,but the mail id can have n no. of characters.

How can i do the mail validation?

Please help...

Regards,

Rheema Rahael.

Accepted Solutions (0)

Answers (2)

Answers (2)

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rheema,

Hey, I could not reply to you ealier as I was on a business trip

The following java script code will solve your problem ... write it in the validate event of the text field.

var address = new RegExp();

address.compile("^[a-z0-9_
-
.]+
@[a-z0-9_
-
.]+
.[a-z]{2,3}$","i");

var result = address.test(this.rawValue);

if (result == true)

{ true;

}

else { false; }

Thanks

Satya

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rheema,

Will you please let us know the status of this?

If this has already solved this problem can you close this thread

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Instead of using text field .. why can not you use a custom control for this?

If you go to the tab Library - Custom you can find one control called 'Emal address'.

I think that control will take care of all the validation code.

If that is not satisfying your requirement.. please let me know.

I will help you on that.

Thanks

Satya

Former Member
0 Kudos

Hi,

I am creating Adobe Forms for ISR Scenarios.So I am using only the ISR controls avaliable in the library.Can we use custom controls in ISR Forms?

Can you tell me how can I make the user enter only alphabets in the text field.

What validation pattern should I use for this?

Please help...

Regards,

Rheema Rahael.

amolgupta
Active Contributor
0 Kudos

hi Rheema,

have you considered JAVA Script...???

Java Script is used for validations purpose.

the scene you are quaoting should be easily solved by javascript.

just above the

body pages| master pages | pdf preview tab

there is a blue sort of button...

when you click that, the area where you write javascript gets visible.

click any ui element....

and then the text box for writing javascript is activated.

just write your validations there.

regards,

-amol gupta