Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

Checker age +18 with possibility to register a parent

6 years 3 months ago - 6 years 3 months ago #306644 by nicola.bernardi@federpriv
Checker age +18 with possibility to register a parent was created by nicola.bernardi@federpriv
Hi,

i need to calculate age from birthday field, displaying age in registration form, and if the user are more than 18 years i can allow to proceed, but if he arent, i must allow him to his parent to give his document number (example license driver or id) to register for the son.

To calculate age i tried to use CB Code Field plugin to calculate age and display it, but i could not do it, so i would need of some help. I read the tutorial but is not clear for me this:https://www.joomlapolis.com/documentation/18534-calculating-years-months-days-from-birthday-field-using-cb-code-field

To allow parent to give his personal data, i need to open a new field if age is less than 18, in which parent can digit his license driver. I think that i can do this with CB Conditional plugin, but i need help in this case too.

Can you give me support?

If you can develope this feature for me i can pay your job, because i dont know if i can do it by myself.

Thank you in advance

Attachment not found


Nicola
Attachments:
Last edit: 6 years 3 months ago by nicola.bernardi@federpriv.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
6 years 3 months ago #306674 by krileon
Use a date field and set its display mode to Age then for its validation specify the year range. There is no exact age validation rule, but have added a feature ticket to explore adding that. Current validation is year range only which in some cases can allow someone to select an age -1 or +1 for the range you're wanting (e.g. 17 instead of 18) since it's only limiting the year selection and not month and day.

forge.joomlapolis.com/issues/7249


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.

Moderators: beatnantkrileon
Powered by Kunena Forum