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.

Select from drop-down field - shows different information alongside

  1. Hey!

    How can I use Gravity Forms to allow the visitor to choose from a range of variables shown in a dropdown menu, with different information showing as a result?

    For example, a dropdown showing different countries. Depending on which country is selected, different contact information is shown.

    Posted 11 years ago on Tuesday March 2, 2010 | Permalink
  2. You can show/hide fields using conditional logic.

    Create a drop down field and populate it with values.

    Create a single text input field and go to the Advanced tab. On that tab will be a checkbox for "Enable Conditional Logic". Check this box and it will display an interface where you can set what conditions must be met for that field to be displayed.

    You would then set it so that If Dropdown1 = Value1 then the field would display.

    Conditional Logic relies on selection fields (drop downs, radio buttons, check boxes) and can be applied to any field. You ONLY apply the conditional logic to the field that you want to show or hide based on a previous selection.

    If you apply conditional logic to a Section Break field, it will show/hide the Section Break and ALL fields that appear below that Section Break. So you can use it to show/hide a block of fields as long as they begin with a Section Break field.

    This should get you moving in the right direction...

    Posted 11 years ago on Tuesday March 2, 2010 | Permalink
  3. Thanks Carl.

    Totally au fait with the Conditional Logic - awesome feature.

    However I want to display static content only - not actual fields to be populated by the user.

    So the user selects, say, Croatia, and then some text would pop up alongside it or below about a contact in Croatia.

    Does that make sense?

    Thanks so much for this fantastic support. It's much appreciated!

    Posted 11 years ago on Wednesday March 3, 2010 | Permalink
  4. Currently we do not have a free form static text field, however we are going to be adding one in the next major release that will enable you to place static content anywhere you want on your form (text, images, whatever).

    In the mean time what you might be able to do is use a Section Break and place the information in the description of the Section Break. It should accept HTML.

    You will have to be careful with how you setup your conditional logic, you may need to add another Section Break below that if you have additional fields that are going to appear because of how conditional logic works on Section Breaks (it show/hides all fields below it up to the next Section Break). This is so you can apply conditional logic to an entire section without editing every single field.

    Posted 11 years ago on Wednesday March 3, 2010 | Permalink
  5. That's simply superb, Carl. It makes perfect sense, if you think about it: instead of having a big long contact list, or list of any type, if you can offer the user a dropdown list of options linked to a set of data which is conditional, you have a great spacesaver and a flashy feature wrapped in one.

    Get that sorted and the RSS Feedburner integration into the forms and I'll start climbing some scrapers to holler Gravity Forms from the skies!

    Thank you.

    Posted 11 years ago on Wednesday March 3, 2010 | Permalink