Why cannot I not hide two pages?

  • Orthodontics_Lifetime
    Asked on March 6, 2020 at 1:16 PM

    I want to show an adult health history form if they are over 18 and a child form if they are under 18. I am trying to make conditions to hide a certain page of a form but it only respects the first condition I have an not the 2nd condition. How do I accomodate for this? 


    Here is my form. https://hipaa.jotform.com/build/193464683397171


    Thank you!

  • Ivaylo JotForm Support
    Replied on March 6, 2020 at 2:46 PM

    I believe that you shoud use "Today-6570" (while you use now Today+6570) in your conditions. So, it will check whether it is before or after 18 years ago.

    Can you please try to adjust your conditions with this and then test again?

    I also noticed that you have some broken conditions. Please disable or fix them, since they might cause issues.

    Let us know, how it goes. We will wait for your response.

  • Orthodontics_Lifetime
    Replied on March 6, 2020 at 3:51 PM
    This wouldnt work because that would not make their age 18. And shouldnt the before and after satisfy that? I did try it and it did not work.
    Sent from my Verizon, Samsung Galaxy smartphone
    Get Outlook for Android
    ________________________________
    ...
  • John Support Team Lead
    Replied on March 6, 2020 at 5:26 PM

    It seems that the requirement cannot be achieved using the conditions you currently have in the form. I suggest using this workaround below instead:

    1. Add a DATE PICKER field above the form - Set to CURRENT and HIDE this field.

    Why cannot I not hide two pages? Image 10

    2. Add a FORM CALCULATION widget to calculate the difference between the DATE field above and the Patient's DOB field using the formula below. Set this to HIDDEN as well.

    15835334802197590 2 Screenshot 21

    3. Remove the conditions you have and replace it with these:

    15835335442197590 4 Screenshot 32

    And that's it!

    I have implemented this on my cloned form. Please try this link: https://form.jotform.com/200656735124957

  • Orthodontics_Lifetime
    Replied on March 6, 2020 at 8:51 PM
    No. I think you misunderstood. I dont want to skip to a page. I want people over the age of 18 to see page 6 and not page 5. I want people under 18 to see page 5 and not page 6.
    Sent from my Verizon, Samsung Galaxy smartphone
    Get Outlook for Android
    ________________________________
    ...
  • roneet
    Replied on March 6, 2020 at 10:45 PM

    Let me test the form and get back to you.

    Thanks.

  • roneet
    Replied on March 7, 2020 at 1:59 AM

    The age is not calculating correctly in your form. 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 age. You can check this formula to calculate the age:

    Why cannot I not hide two pages? Image 10

    Why cannot I not hide two pages? Image 21

    Here is the Demo Form that you can test:

    https://jotform.com/200658256650961

    Hope this helps!

    Thanks.


  • Orthodontics_Lifetime
    Replied on March 7, 2020 at 10:51 AM
    This does not seem to be working either. Am I missing something?
    [cid:image001.png@01D5F46C.7428BD90]
    [cid:image002.png@01D5F46C.7428BD90]
    ...
  • roneet
    Replied on March 7, 2020 at 12:51 PM

    Could you please test the form now. It seems changing the sequence of the condition in this form has fixed the condition.

    https://jotform.com/200658256650961

    Let us know if you have further questions.

    Thanks.

  • Orthodontics_Lifetime
    Replied on March 7, 2020 at 1:51 PM
    [Image]
    Can you see how its not calculating the Age here? I entered a birthday and it just shows that formula.
    Does the calculation widget need to be at the top still? [Image]
    Sent from my Verizon, Samsung Galaxy smartphone
    Get Outlook for Android
    ________________________________
    ...
  • Orthodontics_Lifetime
    Replied on March 7, 2020 at 5:51 PM
    It works! I was just an idiot haha
    Sent from my Verizon, Samsung Galaxy smartphone
    Get Outlook for Android
    ________________________________
    ...
  • John Support Team Lead
    Replied on March 7, 2020 at 7:21 PM

    Glad to know that the workaround provided now works on your end as intended.

    Let us know here if you need further assistance with this.