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

  • Profile Image
    BUFofMichichigan
    Asked on February 28, 2021 at 03: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.



    This is a re-post of a comment on How to Use the Date Limits Option

  • Profile Image
    Richie_P
    Answered on February 28, 2021 at 08: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.png

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

    1614520136_603b9f4807d52_1.png

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