Age Calculator Widget Request

  • luzmangaser
    Asked on October 27, 2017 at 1:20 PM

    I would like to be able to calculate the age when someone enters their birthday.

    Any help?

     

    Thanks

  • Elton Support Team Lead
    Replied on October 27, 2017 at 1:54 PM

    Unfortunately, we do not have that widget as of the moment but I will escalate this as a feature request.

    For now, you may consider this workaround.

    1. Add 2 Date Picker fields and 2 Form Calculation widgets in your form

    Age Calculator Widget Request Image 1 Screenshot 50

    Age Calculator Widget Request Image 2 Screenshot 61

    2. In the 2 Form Calculation Widgets, you need to define formula on each of them to calculate the age.

    The first calculation field (Days) gets the number of days, here's the formula:

    Age Calculator Widget Request Image 3 Screenshot 72

    In the second calculation field (Age), this will calculate the Age base from the given birth date of the user using math Floor function. Here's how:

    Age Calculator Widget Request Image 4 Screenshot 83

    Demo: https://form.jotform.com/61880675038968

    Feel free to clone this form so you can check and review the fields and its formula.

    Guide: https://www.jotform.com/help/28-Cloning-a-Form-from-a-Web-Page

  • luzmangaser
    Replied on October 27, 2017 at 2:43 PM
    Thank you for this instruction but I seem to be missing something. Please take a look at my form below.
    https://form.jotform.com/71656188199169
    Thanks,
    -bm
    ...
  • Mike
    Replied on October 27, 2017 at 4:05 PM

    The following should help:

    - Added current default date.

    Age Calculator Widget Request Image 1 Screenshot 30

    - Added minus sign to the calculation formula.

    Age Calculator Widget Request Image 2 Screenshot 41

    If you need any further assistance on this, please let us know.

  • luzmangaser
    Replied on October 27, 2017 at 4:43 PM
    All done, I figured it out. Thank you so much for your help. Your instruction is very useful.
    Thanks,
    -bm
    ...