Restrict form submission based on date entry

Highlighted
Level 2

Restrict form submission based on date entry

Is there a way to block submission of a form based on a date entry?

We want to have an enrollment form, but the individual can only enroll if they are under 54. We are asking for their birth date (for verification purposes), but would like an error message to pop up if they are 54+. Anyone 54+ should not be able to submit this form.

Is there a way to accomplish this?

Tags (3)
1 REPLY 1
Highlighted
Level 10 - Community Moderator

Re: Restrict form submission based on date entry

Of course -- a developer can use the Forms2 API to check the difference between today's date and and the date field.