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

E-Mail validation in Acrobat Form

New Here ,
Jun 21, 2024 Jun 21, 2024

Copy link to clipboard

Copied

Hi,

iam trying to validate a field as an email and got this script. It's working so far, but it dosn't edelte the field after the "is not valid" message. Can anyone help me?

var email = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/; if (event.value!=""){if (!email.test(event.value)){event.rc = false;app.alert("\"" + event.value + "\" is not a valid email address.");};};
TOPICS
JavaScript , PDF , PDF forms

Views

196

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
1 ACCEPTED SOLUTION
New Here ,
Jun 21, 2024 Jun 21, 2024

Copy link to clipboard

Copied

LATEST

I didn't put the script in validation. that's my problem. SOLVED

View solution in original post

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 ,
Jun 21, 2024 Jun 21, 2024

Copy link to clipboard

Copied

LATEST

I didn't put the script in validation. that's my problem. SOLVED

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