I want to disable the form to be submitted if you are over the age of 21

  • BUFofMichichigan
    Asked on February 28, 2021 at 3:22 AM

    I want to disable the form to be submitted if you are over the age of 21yrs. (creating a form for minor applicants only). There is an "Age Verification" for kids under a certain age, but how do I set for adults over a certain age not completing the form. Please advise. Thx.

  • Richie JotForm Support
    Replied on February 28, 2021 at 8:49 AM

    You may calculate age by adding two date picker fields.

    1 to get the current date and the other for the date of birth.

    You may then use the form calculation widget to calculate the age of the user using the formula floor(current date-Birth date)/365.25

    1614519936 603b9e80356d1 1 Screenshot 10

    Using the show/hide conditions, you can hide your submit button when the Calculation of age is more than 21.

    1614520136 603b9f4807d52 1 Screenshot 21

    Please check it out and let us know if this fits your requirements.