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

E-Mail validation in Acrobat Form

New Here ,
Jun 21, 2024 Jun 21, 2024

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

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

View solution in original post

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

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

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