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

control field for @mail

New Here ,
May 13, 2018 May 13, 2018

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

TOPICS
Acrobat SDK and JavaScript , Windows

Views

367

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

I'll try

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

I'll try

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

I use this custom validation script

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

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

        event.rc = false;

}

Votes

Translate

Translate

Report

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