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.

Fill Dropdown with Parent Taxonomy and Fill 2nd Dropdown with Child Taxonomy

  1. bowlsy

  2. sascha

    I guess this goes into the same direction, but it does not necessarily have to a child category. Just any....
    I'm curious to know how would I go about making my form give a different secondary drop-down menu depending on the choice selected by the first drop-down menu?

    ex: State - California (first drop-down)
    City - Valencia (second drop-down)

    Posted 10 years ago on Sunday October 23, 2011 | Permalink
  3. sascha

    Any ideas on this?

    Posted 10 years ago on Monday November 28, 2011 | Permalink
  4. You would have to implement this using AJAX and dynamic drop downs.

    Here is a tutorial on how to dynamically populate a drop down:

    However that is only going to cover how to do so in a static situation. You'd have to write custom code using jQuery to then interact with and change the values based on a selection using AJAX.

    It would be a fairly complex customization and not as simple as just using a hook and setting the values because you'd have to use AJAX to update them without a page refresh taking place.

    Posted 10 years ago on Monday November 28, 2011 | Permalink