What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How to calculate age through conditional fields?

    Asked by justfornow on May 08, 2016 at 07:22 PM

    We are planning to buy the Bronze service; however one of the fields in our form is not working correctly. We have a field for the date and another for the applicant's date of birth. In the following field called, "Verify your date of birth. Is this your age?" we use the conditional fields feature to calculate the applicant's age by subtracting their date of birth from the current date. However, this feature does not seem to be working - when testing the form it asked me if I was 6741. 

    How can I fix this problem?

    Thank you.

    Screenshot
    calculate age how through problem date of birth and thank
  • Profile Image
    JotForm Support

    Answered by BDAVID on May 08, 2016 at 08:08 PM

    You need to divide by 365:

    To avoid showing the decimals, set them to zero:

    Here is my cloned version: https://form.jotform.co/61287147166864

    Let us know if you need more help.