Date of Birth on Enrolment - Filter out

More
8 years 2 months ago #75903 by Daren
Is it possible to Validate the date of birth so as to prevent users under 18 (based on supplied birthdate) from enroling?>

Please Log in or Create an account to join the conversation.

  • Vincent Schuurhuis
  • Offline
  • Junior Member
  • Junior Member
More
8 years 2 months ago #75913 by Vincent Schuurhuis
Replied by Vincent Schuurhuis on topic Date of Birth on Enrolment - Filter out
For each Custom field there is a "Validation" option. If you set this value to "Past Date" you can manually modify the Validation Rules

for example

validate[required,custom[date],past[01-01-2000]]
Above line will indicate the Date of Birth must be before 1/1/2000

validate[required,custom[date],future[12-6-1986]]
Above line will indicate the Date of Birth must be after 6/12/1986

From what I know there is no option to base the value on the date of the event

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #76724 by Kathy
Replied by Kathy on topic Date of Birth on Enrolment - Filter out
I wonder if you could create a hidden form element to use the functionality of the validation "past" function:
posabsolute.github.io/jQuery-Validation-...nother-elements-name

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc