Skip Navigation

[Closed] Calculate Age of Death

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 1 year, 5 months ago.

Author
Posts
#2499557

Tell us what you are trying to do?

I want to automatically calculate the age of death rather than ask form filler to input the Age of Death, since they're already filling the Birthdate and Deathdate.

#2500659

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

You would need custom code for that.

I assume you have a form that visitors are completing, which contains inputs for date of birth and date of death.

So you would need to add JavaScript (or jQuery) to get the values of the form inputs, make the calculation, and then do something with the result (e.g. to update an input for age of death).

Toolset Forms have a section you can expand to add custom JavaScript.

If you are comfortable coding yourself then try that, and share your code if you get stuck with something specific, and we can try to help.

If you are not comfortable coding you'll need a developer to do it for you. It's the kind of thing that any WordPress developer should be able to handle, but you can find Toolset specialists here: https://toolset.com/contractors/

The topic ‘[Closed] Calculate Age of Death’ is closed to new replies.