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.

Hide portions of form until prior part is filled out?

  1. I have a rather long form I would like to make appear smaller and grow as more information is filled out. Is there a way to hide sections until the previous section has been filled out?

    Posted 14 years ago on Saturday September 18, 2010 | Permalink
  2. Yes, you're referring to the conditional logic feature. If you click on a field and open the options panel, click over to the "advanced" tab and you'll see a checkbox to "enable conditional logic". If you check that, you'll see more fields that will let you show or hide the field based on the value of another select box, multiple choice or checkbox field.

    screenshot

    If you group sections of content together under a section header element, you can show/hide whole sections at a time.

    Posted 14 years ago on Saturday September 18, 2010 | Permalink
  3. Thanks for the quick reply. That sounds like exactly what I want to do. I am familiar with the conditional logic for certain fields but I guess I need to know how to group elements under a section header. Where could I find instructions on how to do that?

    Posted 14 years ago on Saturday September 18, 2010 | Permalink
  4. The new documentation isn't quite ready for release so there's not a lot of real thorough information available yet..

    http://www.gravityhelp.com/documentation/form-fields/section-break/

    You can enable conditional logic for the section break and the content underneath it will inherit from it's visibility.

    screenshot

    Basically, the conditional logic will show/hide the all the content under the section break until it either gets to a new section break, or the end of the form.

    http://www.gravityforms.com/demo/gravity-forms-conditional-logic-form-demo/

    Select an option from the field at the bottom "Who Would You Like to Contact?" and you'll see whole sections of content show/hide based on the value.

    Posted 14 years ago on Saturday September 18, 2010 | Permalink
  5. Thanks again. I'm one step closer... This may be a stupid question but when I try to set the conditional logic on the section break I can only see a few choices from my form and they are further down the form. How can I add more choices to the conditional logic to say after someone enters their address information then show the next section?

    Posted 14 years ago on Sunday September 19, 2010 | Permalink
  6. The conditional logic only works on the pre-defined values in either select boxes, checkboxes or multiple choice (radio) fields. It doesn't work based on the value of a text field.

    Posted 14 years ago on Sunday September 19, 2010 | Permalink
  7. Bummer I guess this won't work in my case then. Thanks for the info though.

    Posted 14 years ago on Sunday September 19, 2010 | Permalink