PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conditional Fields problem

  1. Hi,

    I'm using Gravity Forms to build a classified ad submission form. It is quite complex as there are many categories, custom taxonomies and custom fields needed to be filled during ad submission - I use conditional logic for multiple dropdowns. Thats the idea.

    Let;s say I have 3 dropdowns with categories: to select main category first, then mid-category and finally subcategory. If a subcategory is selected the proper dropdown with parameters should show up. Lets say there are 2 dropdowns with parameters, related to subcategories.

    The problem:
    If I select main category, mid-category and subcategory I'm given the right parameters dropdown. If I change subcategory I'm given different dropdown - related to that subcategory, and thats still ok. But If I change the main category or mid-category the parameters remain unchanged - as If previously selected subcategory was still selected. It seems that even if I hide a dropdown, its selected options affect conditional logic in any other fields. I guess thats the case not only for dropdowns.

    How can I solve that?

    Posted 14 years ago on Monday July 18, 2011 | Permalink
  2. You have to configure the conditional logic on your SubCategory field so that it includes both the Mid-Category value AND the Main Category value in order to be shown. So the Subcategory needs to be something like this: http://i.imgur.com/fTc4E.png

    So your subcategory needs to show only if the value of the mid-category AND main category are correct. I'm guessing right now you are only basing the conditional logic on the value of the mid-category.

    Posted 14 years ago on Monday July 18, 2011 | Permalink
  3. Thanks for the info - I figured it out in the meantime. It didn't reslove all the problems concering this solutions, but there's a tip I want to share:

    To achieve something similar to nested or multilevel conditional logic I used "Section break" as a container (it can have conditional logic apllied to it). So I set Section break (the container) to for e.g "Show if Any..." and Dropdown (the content) set to "Show if All..."

    I hope it helps someone.

    Posted 14 years ago on Monday July 18, 2011 | Permalink