Issues with conditional statements

  • CenterforSalesExcellence
    Asked on September 18, 2014 at 10:13 AM

    Hi,

    I am trying to figure out the conditional statements but I think I hit the wall, and would like to get some help. Here is the link to the form - http://form.jotform.us/form/42604247623148

    Here is how you can replicate the bug

    1) When you get to the form, select No on Q#1, then two sub questions will show up. 

    2) On the 1st question, Select No, a text field will appear

    3) On the 2nd question, Select choice 2, or 3, or 4, a text area will appear

    4) Now go back to select Yes on Q#1, all the fields should be hidden but they are not. The Text field, and the Text area are still there. I can use some help to troubleshoot what i am missing here. 

    Thanks in advance. 

  • Ben
    Replied on September 18, 2014 at 12:39 PM

    Hi,

    I took a look at your form and I see what you mean.

    I have cloned your form and added the required changes to it which you can see here:

    http://form.jotformpro.com/form/42604713976965

    If you clone the JotForm and go to conditions you will be able to see the condition sets that I have made so that it behaves in the way it does.

    My suggestion would be to title the boxes in a way that will allow you to quickly understand which box it is at the start of the field as some conditions boxes do not show entire name, so instead of having
    'Only appears if you selected "No" from Q#1-1 not Q#1'

    I think it might be easier to follow with 'Q#1-1 NO - Only appears if you selected "No" from Q#1-1 not Q#1'.

    If you have a specific scenario that you would like to achieve that might be easier to follow as well.

    I hope that this helps you and do let me know if you need any further assistance with this.

    Best Regards,
    Ben

  • CenterforSalesExcellence
    Replied on September 18, 2014 at 3:33 PM

    Thank you for your quick reply. I tried the form from the link but it looks like it still have that same issues when you selected Yes, not all the fields are hidden. 

  • Ben
    Replied on September 18, 2014 at 3:54 PM

    Hi,

    Good catch.

    I found the reason right away. Thing is with conditions that they are literal, so the last time I added a condition to show that field if No was selected on its parent.

    Now even if the No was selected and canceled when Yes was selected, this child conditions had still been true and had shown it, because even if it is hidden it will still hold value.

    This is what I have changed now:

    Issues with conditional statements Image 1 Screenshot 30

    So we have it looking like this:

    Issues with conditional statements Image 2 Screenshot 41

    Please do try the link again and let me know how it looks :)

    http://form.jotformpro.com/form/42604713976965

    Best Regards,
    Ben

  • CenterforSalesExcellence
    Replied on September 19, 2014 at 4:24 PM

    Thank you Ben. I did not notice that you can add more than conditions. It makes more sense now to me. There are so much flexibility with JotForm. Again, thank you for your help.  

  • Ben
    Replied on September 19, 2014 at 4:39 PM

    Hi,

    You are welcome. Yes, there are many amazing things that you can do with jotform and the best way to learn them is by going to our guides section and experimenting with different widgets and apps :)

    Link to user guide: http://www.jotform.com/help/Link to video: https://www.youtube.com/user/TheJotForm

    (they are both available over Support menu above).

    Best Regards,
    Ben