Confirm Email validation script (PDF Javascript)
Hello everyone, I am new to this forum and any and ALL help would be beyond appreciated on this: I am creating a form where I need to have a box for a user to enter their "email" - lets call the box "email" and then I need them to re-enter the email to confirm that is what they wrote initially (lets call that "validate email"). This way human error can be avoided. Finally a message would alert the user if the boxes DO NOT match. This is what I am currently attempting but it is not working:
email==confirmEmail?"":msg;
I have also tried this:
if (! eMailValidate(event.value) && event.value != "") {
event.rc = false;
app.alert({
cMsg: "Invalid email address - Please try again",
cTitle: "Email1",
nIcon: 0,
nType: 1
});
}
BUT while this is nice, it doesnt confirm the email. It would be nice to have both features in one. Thank you all for your valuable time and assistance in advance.
