Skip to main content
Participant
June 21, 2024
Answered

E-Mail validation in Acrobat Form

  • June 21, 2024
  • 1 reply
  • 450 views

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.");};};
This topic has been closed for replies.
Correct answer Jens25702310o4ep

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

1 reply

Jens25702310o4epAuthorCorrect answer
Participant
June 21, 2024

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