- Posts: 12
- Thank you received: 0
Date of Birth on Enrolment - Filter out
- Daren
- Topic Author
- Offline
- New Member
Less
More
8 years 2 months ago #75903
by Daren
Date of Birth on Enrolment - Filter out was created 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
Less
More
- Posts: 30
- Thank you received: 0
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
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.
- Kathy
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 2
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
posabsolute.github.io/jQuery-Validation-...nother-elements-name
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.