Hide and show multiple fields on the form

  • snit99
    Asked on May 8, 2017 at 8:03 PM

    I'm trying to do conditions for PESTS.

    I know how to create a condition to have one insect show up with their corresponding text box - For example, if I cilck on "Ants", the "Ants Findings" text box appears and all others hide.

    BUT if I want to select say Ants, Birds, Cutworm - how do I have all these text boxes appear?  When I'm out in the field I do not know which pests I will see.  So if I see a 3 or 4 different pests, I would like the text boxes for each pest that I select to show up.  

    Here is the condition I created for Ants - 

    If PESTS is equal to ANTS,

    HIDE Bird Findings

    HIDE Cutworm Findings

    HIDE Leafhoopper Findings

    HIDE Mealybug Findings

    HIDE Rust Mite Findings

    HIDE Sage Rat Findings, etc, etc........

    I did this for Ants, Birds, Brown marmorated Stink Bugs and Cutworm.  Then I tried it out by selecting 2 or 3 of them and only the textbox for the first pest I select appears. Then when I select the 2nd pest, all the text boxes disappear. The Brown Marmorated condition - when this is selected, then all the boxes appear...

    can you help? Is it possible to select a few of the pests in my list and have their corresponding text boxes appear?

    Thank you!

     

  • RyanC
    Replied on May 8, 2017 at 9:57 PM

    in the Settings -> Create conditional Logic. As show below the example

    Hide and show multiple fields on the form Image 1 Screenshot 20

  • RyanC
    Replied on May 8, 2017 at 10:03 PM

    If you click the checkbox. It shows the text field of the desired pests.

    Hide and show multiple fields on the form Image 1 Screenshot 30

     Hide and show multiple fields on the form Image 2 Screenshot 41

     

  • Kiran Support Team Lead
    Replied on May 9, 2017 at 1:36 AM

    I have cloned your JotForm and see that you have added 'Multiple Text Fields' widget and separate text fields on the form. If you want to display individual fields from the 'Multiple Text Fields' widget based on a condition, unfortunately, it is not possible since the widget itself is considered as a single field. If you want to display the separate textbox fields using conditions, you may setup separate conditions to show the corresponding findings textbox field as shown below:

    Hide and show multiple fields on the form Image 1 Screenshot 20

    Since we set a condition on the form to display the field only when the condition is true, the finding textbox will be hidden by default. It is not required to have a separate condition on the form to hide the other fields unless they are not associated with any conditions.

    https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    Hope this information helps! Please get back to us if you need any further assistance. We will be happy to help. 

  • snit99
    Replied on May 9, 2017 at 2:27 PM

    I found the Multiple Text Fields yesterday evening.  I thought I would try it out while I waited for your response.  

    I am going to try what you have suggested above, because I have to create text boxes for all of my Multiple Choice fields and would prefer not to have the form so cluttered.

    I really do appreciate your quick responses.  Thank you!!!