You need to sign in to do that
Don't have an account?
How do I write a workflow to check an Under Age 18 box?
I'm trying to create a formula field that will look at a person's birthdate and check an "Under 18" checkbox. Then, I need to create another formula or workflow that will uncheck it once they turn 18 and check an "18 and over" checkbox OR will just check the "18 and over" checkbox for those people that are over 18. I'm not the greatest with anything math-related and could use some help. Thank you in advance!
You can create a formula field with return type decimal. And use the below formula which will calculate the age.
Then based on age (above formula field) You can create another checkbox formula field to calculate under 18 and 18+ checkboxex.
Do let me know If you have any further query.
Thanks
You can do the same thing for an "18 and over" checkbox with this code instead:
Over 18
Return Type: Check box
IF(YEAR(TODAY())-YEAR(Birthdate__c ) >18, true,false)
Under 18
Return Type: Check box
IF(YEAR(TODAY())-YEAR(Birthdate__c ) <18, true,false)
Use this formula to check the checkbox.
Let me know if its works as you excepted.
Thanks,
Jenefa
Sweet Potato Tec