I have set conditional logic but some fields are not showing

  • SOSStLucia
    Asked on May 15, 2017 at 1:47 AM

    i have a form with over 100 fields and there are some fields which refuse to show even though I have set conditional logic to show them. I have gone through every single condition set to see if there is something preventing them from being shown. No luck. Any ideas?

  • Helen
    Replied on May 15, 2017 at 2:59 AM

    Hello,

    Thank you for contacting us.

    I have checked your last edited form. Here: http://www.jotform.co/form/71297955496879

    This form has contains 51 conditions and these conditions reflected a lot of fields. Did you check the fields which refuse to show even though you have set conditional logic to show them?

    Could you please provide us these fields details? We can check it for you on our side.

    You must check every field and condition for solving your issue.

    If you have any questions or issue, please do not hesitate to contact us. 

  • SOSStLucia
    Replied on May 15, 2017 at 1:19 PM
    Thank you for replying so quickly. The condition that doesn't appear to be behaving as expected is Condtion 2.  The 'if' fields are field numbers 17 and 18. I want the fields 98 to 105 to show if fieId 17 is no or field 18 is yes.  Fields 98-105 are set to be hidden in advanced properties. 
     
    Thanks
  • SOSStLucia
    Replied on May 15, 2017 at 1:43 PM
    Hi Helen,
    Thank you for replying so quickly. The condition that doesn't appear to be behaving as expected is Condtion 2. The if fields are field number 17 and 18. I want the fields 98 to 105 to show if fieId 17 is no or field 18 is yes. Fields 98-105 are set to be hidden in advanced properties.
    Thanks
    k
    The fields that I am trying to show are numbers
    Sent from my iPhone
    ...
  • David JotForm Support Manager
    Replied on May 15, 2017 at 2:51 PM

    Please disable the hidden option from the advanced properties. If you have created conditions to show them only if a condition is met, those field will remain hidden.

  • SOSStLucia
    Replied on May 15, 2017 at 3:21 PM

    Hi BDAVID,

     

    I have hidden them (in advanced properties) because I do not want them to show unless certain conditions have been met. However, when the conditions are met, they still do not show. 

  • SOSStLucia
    Replied on May 15, 2017 at 3:33 PM

    Hi BDAVID,

     

    I have hidden them (in advanced properties) because I do not want them to show unless certain conditions have been met. However, when the conditions are met, they still do not show. 

    Furthermore even when I 'unhide' them (in advanced properties), they still do not show when the conditions are met. 

  • David JotForm Support Manager
    Replied on May 15, 2017 at 5:05 PM

    First of all, I hope you don't get discouraged with my answer, as I found it difficult to tell you exactly where the problem lies, because there are many conditions where those two fields are listed. But I will do my best to guide you troubleshooting this problem.

    I just want to explain two things when it comes to conditions:

    1) There is no need to hide a field through it's properties if you have created a condition to show it.

    I have created this simple condition to show the Name field if the answer to the previous question is equal to yes:

    I have set conditional logic but some fields are not showing Image 1 Screenshot 70

    As you can see in the following animated image, the field does not show upon form's load, because the condition has not been met yet. So there is no need to hide it through it's properties:

    I have set conditional logic but some fields are not showing Image 2 Screenshot 81

    2) There is no need to crate a condition to hide the specific field if the opposite happens:

    Having a second condition to hide the fields is not a good practice, because as explained before, the field is already hidden until the "Show" condition is met. 

    I have set conditional logic but some fields are not showing Image 3 Screenshot 92

     

    With that being explained, let met tell you that you will need to re-calibrate the conditions to fix the problem, because even though you have disabled the "Hide" property for those two fields, Expired/Current Passport Number(98) and Has Loss Been reported to the police?(105), they still do not show, because they are listed in other conditions that conflict with one another, example:

    Field 105 is listed in more than 5 conditions:

    I have set conditional logic but some fields are not showing Image 4 Screenshot 103

    So, what happens if two, or three of those five conditions are met? Which one should be triggered or have more priority? You need to create nested conditions to solve it:

    Let's see the first two of those five conditions where field 105 is listed:

    I have set conditional logic but some fields are not showing Image 5 Screenshot 114

    Those two can be combined in one simple condition to accomplish what you need, example:

    I have set conditional logic but some fields are not showing Image 6 Screenshot 125

     

    So, I invite you to revise your conditions, and to recalibrate those that can cause a conflict or discrepancy with others.

    Let us know if you have more questions.

  • SOSStLucia
    Replied on May 15, 2017 at 5:45 PM

    WOw!  Thank for this thorough explanation and no, I was not discouraged.  Your first animation explained something fundamental that I was not aware of and probably would've made a difference. 

     

    Yes, I got a bit a carried away with the conditions and realize hat several could've been consolidated. I will try to follow your recommendations and clean them up. 

    in what kind of scenario would you recommend using the hide option in advanced properties?

    Thanks again

  • David JotForm Support Manager
    Replied on May 15, 2017 at 6:55 PM

    You are welcome! I will provide you an example on how to use the hide option from the advanced properties in the following thread: https://www.jotform.com/answers/1145392