Why cannot I not hide two pages?

  • Profile Image
    Orthodontics_Lifetime
    Asked on March 06, 2020 at 01: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!

  • Profile Image
    IvayloK
    Answered on March 06, 2020 at 02: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.

  • Profile Image
    Orthodontics_Lifetime
    Answered on March 06, 2020 at 03: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
    ________________________________
    ...
  • Profile Image
    JohnRex
    Answered on March 06, 2020 at 05: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.

    15835333382197590.png

    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.png

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

    15835335442197590 4.png

    And that's it!

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

  • Profile Image
    Orthodontics_Lifetime
    Answered on March 06, 2020 at 08: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
    ________________________________
    ...
  • Profile Image
    roneet
    Answered on March 06, 2020 at 10:45 PM

    Let me test the form and get back to you.

    Thanks.

  • Profile Image
    roneet
    Answered on March 07, 2020 at 01: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:

    15835643281.PNG

    15835642831.PNG

    Here is the Demo Form that you can test:

    https://jotform.com/200658256650961

    Hope this helps!

    Thanks.


  • Profile Image
    Orthodontics_Lifetime
    Answered on March 07, 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]
    ...
  • Profile Image
    roneet
    Answered on March 07, 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.

  • Profile Image
    Orthodontics_Lifetime
    Answered on March 07, 2020 at 01: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
    ________________________________
    ...
  • Profile Image
    Orthodontics_Lifetime
    Answered on March 07, 2020 at 05:51 PM
    It works! I was just an idiot haha
    Sent from my Verizon, Samsung Galaxy smartphone
    Get Outlook for Android
    ________________________________
    ...
  • Profile Image
    JohnRex
    Answered on March 07, 2020 at 07: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.