Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

control field for @mail

New Here ,
May 13, 2018 May 13, 2018

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

TOPICS
Acrobat SDK and JavaScript , Windows
535
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 13, 2018 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 13, 2018 May 13, 2018

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

I'll try

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 13, 2018 May 13, 2018

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

I'll try

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 14, 2018 May 14, 2018
LATEST

I use this custom validation script

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

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

        event.rc = false;

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines