Hide and show multiple fields on the form

  • Profile Image
    snit99
    Asked on May 08, 2017 at 08: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!

     

  • Profile Image
    RyanC
    Answered on May 08, 2017 at 09:57 PM

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

  • Profile Image
    RyanC
    Answered on May 08, 2017 at 10:03 PM

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

     

     

  • Profile Image
    Kiran
    Answered on May 09, 2017 at 01: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:

    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. 

  • Profile Image
    snit99
    Answered on May 09, 2017 at 02: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!!!