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.

Dynamic Drop Down Fields

  1. psg190
    Member

    Is it possible to auto-populate a drop down field based on the information entered in a previous drop down field?

    Example: User selects country from drop down field and then when clicking on state/providence field, only entities within the selected country are shown.

    Posted 13 years ago on Thursday July 22, 2010 | Permalink
  2. Currently that is not possible dynamically. Or I should say it probably isn't a simple thing to do dynamically. It may be possible to attach a jquery event to it and then roll some AJAX, but that wouldn't be a simple change and would be a pretty advanced customization.

    The only option outside of that would be to use conditional logic and create a drop down for each option, but that would probably be pretty time consuming. We can look into how we can handle this. I have some ideas... we may need to implement conditionals on the actual drop down values. This would be a cool feature and i'll add it to our idea list.

    Posted 13 years ago on Friday July 23, 2010 | Permalink
  3. psg190
    Member

    Thanks for the reply.

    The only limitation I could think of if using conditional logic would be the potential for several more columns when looking at reports, correct? Essentially, instead of having a single column labeled "State," there would be a column for each individual state. Kind of messy.

    AJAX and jquery are all a little over my head :(.

    If you add the functionality, then I'll certainly be purchasing Gravity Forms.

    Posted 13 years ago on Friday July 23, 2010 | Permalink
  4. GZA
    Member

    Carl, I would be interested in this too.

    We're currently redesigning some of our sites to take into account some of the new features in WP 3.0, namely custom post types and taxonomies.

    Now that WP supports custom taxonomies, enabling us to group certain tags contextually, we plan to use WP's native categorisation functionality exclusively for geographical values, i.e.

    - Continent
    -- Country
    --- Region
    ---- City/Town

    In this scenario, would it be correct to assume that using conditional logic to handle the dynamic drop downs would be easy and straight-forward to achieve the desired result, i.e. select continent (parent) and next drop down is pre-populated with associated countries (child) and so on...

    Posted 13 years ago on Sunday August 1, 2010 | Permalink
  5. @GZA We haven't discussed adding this, currently it is just an idea so i'm not sure at this point how it would work or how straight forward it would be. Dynamically populated drop downs with conditional logic associated with them might be something we have to make API hooks for as creating an intuitive UI could prove problematic.

    Posted 13 years ago on Sunday August 1, 2010 | Permalink
  6. GZA
    Member

    Cheers Carl. Intuitive UIs are what keeps me awake at night ;-)

    Anyway, it would be a nice to have feature for our purpose.

    Posted 13 years ago on Sunday August 1, 2010 | Permalink
  7. Hello,
    Any update on the auto populate based on previous dropdown, I just buy the plugin believing he can do it.
    I'm kind of disapointed now, as It seems it's not possible.

    Posted 13 years ago on Wednesday December 22, 2010 | Permalink
  8. sirspacey
    Member

    Bump. API hooks?

    Posted 12 years ago on Wednesday August 31, 2011 | Permalink
  9. Closing topic as it is a pre-sales thread, not support.

    Posted 12 years ago on Wednesday August 31, 2011 | Permalink

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