on 07-20-2007 5:36 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.