Two field search form

Forums › Forums › Search & Filter Pro › Two field search form

Viewing 6 posts – 1 through 6 (of 6 total)
  • Anonymous
    #34190

    Hello,

    I am using Search & Filter 2.0 pro. I am using the Avada theme. I have created a custom post type called teams. There are two custom fields for location: country and state-province. I want to create a search form which will have two dropdown fields. The first would be: country. Based on that selection, I would like to autopopulate the second field: state-province. I only want those states or provinces that are related to the first field: country. For example, if there are two countries: USA and Canada, if I select Canada in field one of the form, I want field two to only include Canadian provinces and not USA states.

    I have tried for days to figure this out but I cannot seem to make it work. I have read your forums and it seems that ajax is an issue with Avada. I would just like to know if this is possible before I spend more time trying to solve this. If it is possible, I would love to have a few pointers in the right direction.

    Kind regards.

    Ross Moderator
    #34248

    Hey Paul

    Did you try ticking “enable auto count” in the general tab?

    Then in your fields tick “hide empty”

    This should achieve the effect you are looking for.

    Thanks

    Anonymous
    #34296
    This reply has been marked as private.
    Ross Moderator
    #34327
    This reply has been marked as private.
    Anonymous
    #34367

    You are a genius! I set a redirect while I was working on the site. I would never have been able to figure out that the redirect interfered with the ajax!! Thank you, thank you, thank you!

    Ross Moderator
    #34369

    🙂

Viewing 6 posts – 1 through 6 (of 6 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.