Skip to main content
Participant
May 13, 2018
Question

control field for @mail

  • May 13, 2018
  • 2 replies
  • 550 views

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

This topic has been closed for replies.

2 replies

Inspiring
May 14, 2018

I use this custom validation script

if (event.value && !eMailValidate(event.value)) {

        app.alert("Wrong email entered",0,0,"Error");

        event.rc = false;

}

Karl Heinz  Kremer
Community Expert
Community Expert
May 13, 2018

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

SstanceAuthor
Participant
May 14, 2018

Thanks Karl, both for this and for other answer you gave me.

I'll try