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

    Show fields based on age

    Asked by pepjf on September 11, 2013 at 05:34 PM

    Hello, 

    I have a form (http://form.jotform.co/form/32535151535853) and it has a birth date field.  Right now, I believe there is a condition there that if the birth date is less than 18 years old, then the user has to fill in the guardian's email and phone number.  I would like to add to this condition but I don't know how to.

    I wanted to be able to add also that if the user is less than 18 years old that these 2 fields show:

    The free html that says "If you are younger than 18 years...."

    Guardian's Email

    Please see attached for all the fields that should show if the user's age is less than 18 as at the date they are filling out the form.

    Thanks!

    Screenshot
    JotForm date field email phone number
  • Profile Image
    JotForm Support

    Answered by guilledutra on September 11, 2013 at 08:18 PM

    Hi,

    You can achieve this by adding a "Number"(Age) field where the user should fill its age, then by using conditions "if age field is less than 18, then  show guardians fields". Set the Age field as required.

    1 - Add the "Age" number field.

     

    2 - Set the age condition in order to show the guardians fields

    Hope it helps

    please let us know if you need further assistance

    thanks

  • Profile Image

    Answered by pepjf on September 11, 2013 at 08:22 PM

    Okay, thanks.   I was hoping the user didn't have to input their age again but that the system could calculate the age based on the date of birth.

  • Profile Image
    JotForm Support

    Answered by guilledutra on September 11, 2013 at 08:32 PM

    I'm afraid that this is not possible at the moment using the JotForm builder.

    Thanks

  • Profile Image

    Answered by pepjf on September 12, 2013 at 03:15 AM

    okay, thank you!

  • Profile Image

    Answered by gori-mathew on September 12, 2013 at 04:15 AM

    On behalf of my colleague you are welcome, do feel free to let us know wherever you need our assistance.

    Regards!