Skip to Content Skip to Menu

how can I configure on a (birthday)date field a +18y old verification check?

  • webmasterACA
  • webmasterACA
  • OFFLINE
  • Posts: 71
  • Thanks: 12
  • Karma: 3
  • Add-ons
2 hours 44 minutes ago #344189 by webmasterACA
PHP 8.4.22
Joomla 5.4.6
CB 2.11.0
database MySql 8.0.30

Hi Support,
I'm running CB + CB Paid Subscriptions to register members of a sportclub and have then annual paid memberschip fee.
During registration, new members have to provide their date of birth: CB fields type 'Date'. In the field definition parameters => validation I provide a min. -18 and max -100.
I am not allowed to accept members of -18years due to legal requirements not met for working with minors.
I expected the validation rules would verify that at registration the new member is +18y based on the birthday date provided.
It now turns on that this only checks wether the year of birth is more then 18y ago, but does accept registration by people who are in between 17 and 18 at the date of registration.
Is there any other way I can check that at today they effectively turned 18?In other words that the date provided in the birthday field is effectively more then 18 year ago compared to today's date?

Thanks, best regards

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50543
  • Thanks: 8652
  • Karma: 1473
1 hour 35 minutes ago #344190 by krileon
Edit your Date field then within Parameters > Display set "Profile View Display" to "Age", "Birthday", or "Birthday, with Age". Now under Parameters > Validation set the "Minimum Age" and "Maximum Age" as needed.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • webmasterACA
  • webmasterACA
  • OFFLINE
  • Posts: 71
  • Thanks: 12
  • Karma: 3
  • Add-ons
1 hour 2 minutes ago #344192 by webmasterACA
Thank you! Question solved. 
You guys are amazing me every time again. 
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum