PDF Form: Validation for birth dates
Hi
I am looking for some help with Javascript in relation to validation around birth dates.
I have a form and want to ensure that a user does not select the current years calendar from the Date Field when they select their birth date, the user will be older than 18 years preferably and I tried to use the following which I found on a website, but it comes up with an error.
var today = new Date();
var selectedDate = new Date(this.value);
if (selectedDate > today) {
app.alert("Please select a past date.");
return false;
}
Is someone able to assist?
Thanks Nicole
