How to hide Form fields based on age?

  • muvanlier
    Asked on August 5, 2019 at 5:24 AM

    H there i want to create a dynamic age range for 18 years and older. in the calender a conditional logic should be present in which the user goes to the next question when there are 18 yers or older.

    Kind regards,

    Milenko

  • roneet
    Replied on August 5, 2019 at 7:29 AM

    Let me make a demo Form for you. I'll get back to you in some time.

    Thanks.

  • roneet
    Replied on August 5, 2019 at 8:03 AM

    You will have to add two Date Picker fields to your form. The first to ask the birth date and the second to show the current date. After that, you should calculate the day difference.

    Here is the workaround:

    1. Add another date field which will show the current date.

    How to hide Form fields based on age? Image 10

    2. Next, add a Form calculation field to calculate the age of the user using the following formulae:

    How to Perform Form Calculation Using a Widget

    How to hide Form fields based on age? Image 21

    3. Add a condition to hide the fields if age is greater than 18.

    How to hide Form fields based on age? Image 32

    Here is the Demo Form:

    https://form.jotform.com/92163316620955

    Let us know if you have further questions.

    Thanks.