What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    I am creating a membership registration form for our club. One requirement for membership is a minimum age of 18. Am trying to figure out how.

    Asked by redrangeraz on January 13, 2017 at 08:47 AM
  • Profile Image
    JotForm Support

    Answered by Kevin_G on January 13, 2017 at 09:25 AM

    You may ask the submitter her/his birth date and simply calculate the age, show a message based on her/his age.

    First, you need to add two date fields, one where you will ask the birth date and a second one where you will capture the current date: 

    Then you only need to add the Form Calculation widget to your form and add the calculation to get the age: 


    The floor function will help to round the calculated value, find more info about it on this guide: https://www.jotform.com/help/267-Form-Calculation-Math-Function-Reference 

    Based on the result given in the calculation you can then show or hide fields in your form, here's a guide where you will find more info about it: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer 

    I think you could first ask the user's age and then based on the result show the fields so he can continue filling it out, otherwise simply indicate they cannot continue to the form. 

    Let us know if you have any question.