Come calcolare l'età?

  • studiodottcompri
    Domanda del 27 giugno 2024 alle ore 09:31

    Buonsaera, volevo sapere come potrei calcolare l'età automaticamente conoscendo la data di nascita e la data di oggi.

  • Silvano Jotform Support
    Risposta del 27 giugno 2024 alle ore 10:02

    Hi studiodottcompri,

    Thanks for reaching out to Jotform Support. Our Italian Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Italian, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, this can achieved by adding two Date fields in your form and a Form Calculation Widget. Check out the steps and screencast below to see how it's done:

    1. In Form Builder, click on Add Form Element + and on the left panel look for the Date Picker Field. Add two Date Picker fields to your form.
      Come calcolare letà? Image 1 Screenshot 60
    2. Now, click the first Date Picker field and click the Gear Icon. In the right panel, go to Options Tab and set the Default Date as Current. Then go to Advanced tab and Turn on Read Only slider.
      Come calcolare letà? Image 2 Screenshot 71
    3. Next, click the second Date Picker Field and click the Gear Icon. In the right panel, go to Limits tab and Uncheck Future checkbox to allow form fillers to enter past dates only as this is a birthday field.
      Come calcolare letà? Image 3 Screenshot 82
    4. Next, add the Form Calculation widget to perform calculations for age.
      Come calcolare letà? Image 4 Screenshot 93
    5. Finally,set the calculation for the Form Calculation widget, as shown below: Come calcolare letà? Image 5 Screenshot 104

    That's it. Here's a demo form that you can check and clone.

    Give it a try and let us know if you have any other questions.