How to calculate age through conditional fields?

  • justfornow
    Asked on May 8, 2016 at 7: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.

    Jotform Thread 834928 Screenshot
  • David JotForm Support Manager
    Replied on May 8, 2016 at 8:08 PM

    You need to divide by 365:

    How to calculate age through conditional fields? Image 1 Screenshot 30

    To avoid showing the decimals, set them to zero:

    How to calculate age through conditional fields? Image 2 Screenshot 41

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

    Let us know if you need more help.