Forums › Forums › Search & Filter Pro › Two field search form
- This topic has 5 replies, 2 voices, and was last updated 10 years, 9 months ago by
Ross.
-
Anonymous(Private) January 14, 2016 at 2:38 am #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(Private) January 14, 2016 at 3:41 pm #34248Hey 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
-
AuthorPosts