Conditional Logic is not working in my form

  • cachiragmaru
    Asked on May 21, 2022 at 9:31 AM

    I am trying to hide few pages on basis of certain criteria but it is not working

    Jotform Thread 4031683 Screenshot
  • Carlo JotForm Support
    Replied on May 21, 2022 at 9:44 AM

    Hello Chirag,

    Thanks for reaching out to Jotform Support. I cloned your form and tested it to see if I could replicate the issue, but everything was working properly. Check out the screencast below to see my results:

    1653140595 6288ec7327f47 Screencast6 Screenshot 10

    In the meantime, I have cleared your form cache as it fixes temporary glitches. Can you try it again and see how it goes? If you run into the same problem again, Can you take a screenshot of what’s happening and send it to us? This guide will show you how to do that.




  • cachiragmaru
    Replied on May 21, 2022 at 10:00 AM

    Thanks for your answer.

    What i am trying to do is, when i select name

    1. Dhankar Product description - " it should go to 2nd page only & 3 along with 4th should hide.
    2. Gurucharan - " only 3rd page is visible" , 2 along with 4th page gets hidden.
    3. dhankar packing plan - " only 4 th is visible all others remain hidden."


    But logic is not working in case of "Dhankar Product Description" - it is not hiding page 4.

  • Ravi_g Jotform Support
    Replied on May 21, 2022 at 10:37 AM

    Hello Chirag,

    Thanks for reaching out to Jotform Support. I cloned your form and tested it to see if I could replicate the issue, and I ran into the same problem. When I looked at your form, I saw that the creating different condition for page 4 creates an issue. I created one single condition in which we hide page 4 and it seems to be working for me. Please check the output in below screencast:

    sC b8y0EwQolDEM9yP4Ozwb8D2oiUN7rQfqgsVl5 Screenshot 10

    Above screencast is the output of the conditions showed in the below screenshot:

    c eI tNIf5xgH79uHMGu8v1mqnpqAyjzEjS13bS8 Screenshot 21

    Here is my cloned form link and if needed you can clone the form following this How to Clone an Existing Form From a URL guide. Give it a try and let us know how it goes.

    Let us know if there’s anything else we can help you with.



  • cachiragmaru
    Replied on May 25, 2022 at 1:41 AM

    Yesterday your solution was working but today again it is throwing same error.

    Kindly assist.

  • Patrick_R
    Replied on May 25, 2022 at 2:33 AM

    Hello,

    Kindly note that there is a clash between your conditions. For this reason, these aren't working. A different approach needs to be followed to make this functionality work (explained below).

    This simple version of your form shows how the logic would work: https://form.jotform.com/221441102258039. Please go ahead and try this form with various options to check it's working.

    Following is how this form works:

    1. There are only SKIP-TO conditions used here (screenshot below for your reference).

    1653459971 628dcc038d983  Screenshot 10

    These conditions will take the user to specific pages after they select an option.

    2. Now, the problem is that as the logic doesn't hide any pages, user will see Page 4 if they only select the option to Page 3. To solve this issue, the following technique can be followed.

    • Firstly, on Page 2, Page 3, and Page 4, create a dummy textbox with any value like 5. You can keep these form fields hidden as per your requirement.
    • We will create 3 more SKIP-TO conditions for each of these textboxes that will SKIP users to the last page upon visiting that particular page (screenshot attached for your reference).

    1653460317 628dcd5d954b7  Screenshot 21

    This is the complete setup; you can make changes to your form accordingly. Also, if you wish to clone my test form into your account to check its implementation; please use these instructions.

    If you have questions, let us know.