I followed this tutorial to calculate and validate against a person's age using a date picker field: http://www.gravityhelp.com/forums/topic/check-date-greater-than-18-yrs
The problem is I am using a multi-page form and the date of birth field I am using is on the second page. When the script executes I am getting a validation error message at the top of the first page, but no field is highlighted below as containing an error.
When I remove the age validation script, I can proceed past page one just fine.
The script otherwise runs successfully. How can I modify the script to only execute on the page that contains the DOB field?