Calculate age when date of birth is filled out
Calculate age when date of birth is filled out
paintitblack
Posts: 60Questions: 20Answers: 0
Hi,
is it possible to calculate the age immediately after the field "date of birth" is filled out and show the result right to the field?
With options “message” or “fieldInfo” it possible to add texts left or below the field.
How is possible to put them right to the field and how could it calculate the age?
Thanks for any support.
Patrick
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
This is with Editor? If so, the
dependent()
method can be used to listen for changes on one field and cause an update to another.Regards,
Allan
Thats a relly nice function.
I used for an easier issue to calculate the profit
Is it possible to combine both in one function? I created one separet function but it wasn't possible to call the siteEditor variable.
Thanks in advance
Patrick
They look identical. Are they? If so you can pass the first parameter of
dependent()
as an array - e.g.[ 'quantity', 'purchasePrice' ]
.Allan
Yes they are dependent.
This works pretty well:
Thank you very much
Patrick