Copy link to clipboard
Copied
Hi guys!
May be someone could help me. The fact is that:
I would to create a field that control email address, in the sense that the field should verify the presence of an address that contain "@" and an extension like .com, .net, etc. etc.
Suggestion?
In true, i've a second (quite) related question: how can I make a control field that admit only letters, no numbers or special characters?
Thanks
Copy link to clipboard
Copied
You do this with field Validation. The validation function has a number of options (phone numbers, ...) - if that is not sufficient, you would have to use a custom calculation script. Take a look here for some information: Adobe Acrobat JavaScript: Validating Fields with Custom Validation Scripts
Copy link to clipboard
Copied
Thanks Karl, both for this and for other answer you gave me.
I'll try
Copy link to clipboard
Copied
Thanks Karl, both for this and for other answer you gave me.
I'll try
Copy link to clipboard
Copied
I use this custom validation script
if (event.value && !eMailValidate(event.value)) {
app.alert("Wrong email entered",0,0,"Error");
event.rc = false;
}