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 Logic on Dropdown Options

  1. Hello,

    I am currently in the process of creating a dropdown-based Search Form with Gravity Forms and a custom redirect script and have hit a slight roadblock.

    Essentially, the search form has two fields - State and City. The "City" field is currently using Conditional Logic based on the selection in the "State" field. The form then will redirect the user to the appropriate page based on their selection when they click "Submit". My issue is however that the redirect will work only on the selection of a singular field..

    Currently I have multiple "City" fields (1 for each state). My Redirect however needs a singular field as its selection. Essentially I need to list ALL the cities for All states as 1 dropdown in order to redirect properly vs. Having 1 dropdown of cities per state.

    My question is - Is it possible to have conditional-based Options rather than a conditional-based field? For example having all of the cities within 1 dropdown, but only display the cities for the state of Arizona as long as the State field is Arizona, etc. rather than having each state having its own dropdown field of cities (I dont like having 52 dropdown lists of cities either)

    Posted 11 years ago on Tuesday May 14, 2013 | Permalink
  2. David Peralty

    Gravity Forms doesn't have conditional options, and as such, you would have to program it with AJAX/JQuery yourself.

    Posted 11 years ago on Tuesday May 14, 2013 | Permalink
  3. Ahh okay. Thank you for the quick reply!

    Posted 11 years ago on Tuesday May 14, 2013 | Permalink

This topic has been resolved and has been closed to new replies.