You need to sign in to do that
Don't have an account?
AnnieE
Date in DOB field based on age
I found a formula that returns an age expressed in years, months and days when a date is entered in the DOB field. Now I need a DOB entered based on the age field (again expressed as years, months, days.)
This is for animals where we can be supplied with either an approximate DOB or an approximate age. We need which ever of these two fields is blank to auto-populate based on it's complementary field.
Thank you.
This is for animals where we can be supplied with either an approximate DOB or an approximate age. We need which ever of these two fields is blank to auto-populate based on it's complementary field.
Thank you.
Hi,
Try the below formula, It will calculate the DOB(expressed as years, months, days.) Based on the entered age
DATE( YEAR(TODAY()) - FLOOR(Age_Field__c / 12), MOD(MONTH(TODAY()) - MOD(Age_Field__c, 12), 12), DAY(TODAY()) )
Mark it as betst answer if this helps.
Thanks
Arun
You can also try with the below formula :
Hope this helps !
Thank you.
Thanks again
The question is then which way to do it.
Options:
- Create a button that invokes a flow that you use to populate the fields - consider making the fields read only on the layout.
- Fast update flow triggered on save which populated whichever field is not filled. You may need to decide which field has precedence.
- Embed a screen flow as a component.
It depends on the business preference, user base, and whether you want it locked down, but I would look at them in order of the above as options.Where I say fields need precedence above, if both the DOB and the AGE are entered, does the DOB win over the AGE and then AGE is recalculated. And if using the fast update flow, I would also do a test for the fields being changed so the flow does not always run.
Regards
Andrew