Hi
Thanks for that tip on using the Code field type, I installed the plugin and used the sample code from the site that calculates Extact age and displays on screen
I am still a little unclear on how that updates as the user enters the date of birth, it seems that the code example checks only the value default ( blank) so shows Exact age is: 0 years, 0 months, 0 days but no matter what date i pick on the form for date of birth, i cant seem to get the value in the exact age code field to update
I tried changing the Code to use field substitution
from
$datetime2 = new DateTime($user->cb_crew_dob);
to
$datetime2 = new DateTime($user->[cb_crew_dob]);
and also tried
$datetime2 = new DateTime($user->'[cb_crew_dob]');
but then just got a major error
Do I need do some code on the cb_crew_dob field instead or have i just misunderstood how the substitution syntax works?
Is it possible to dynamically get that updated from the user screen?
Thanks in advance
Stuart