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: 7 years 8 months ago by nicola.bernardi@federpriv.
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.
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.