Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Update a field when another one changes

7 years 8 months ago #293420 by bilal.abdeen
Update a field when another one changes was created by bilal.abdeen
I would like to store the user's birth YEAR (not the complete Date of Birth). I have an optional field called cb_dob_year for this, which users fill in when registering.

If the user uses a social network, e.g. Facebook, to register, he/she would not provide his/her birth YEAR. However, some social networks provide the DATE of birth. I mapped the social network field to an optional field called cb_dob.

In the case where the user uses a social network to register, I want to use the birth date value, which is in cb_dob to fill in the birth year in cb_dob_year. Using db terminology, I need to create some sort of a trigger to extract the year value from cb_dob and store it in cb_dob_year. Is this at all possible using some CB plugins?

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

Moderators: beatnantkrileon
Powered by Kunena Forum