Hi,
Thank you for waiting while I reviewed your question.
I understand that you're looking to include hierarchal or multi-level front-end search fields, where options of one field are changed/updated based on the selection made in another field.
This feature is supported and you can see it in action in our "Real estate" reference website:
hidden link
( please note how the "States" and "Cities" field in the search form are interconnected )
There are two limitations though:
A. These hierarchal or multi-level front-end search fields can only be added for post-relationship and can't be used for taxonomies or custom fields.
( ref: https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/how-to-filter-posts-by-their-ancestors/ )
B. In a search form, there can be only one post-relationship filter, which means that if you'll use hierarchal filtering field for "Location" ( Country -> City ), you won't be able to use it again for the "Dive class offered" ( Class level -> Class names ).
Based on these points, a workaround can be to use hierarchal filtering for "Location" fields and for the "Dive class offered" add two independent select fields instead of one. The first one will list all "Professional classes" and the other one will list all "Rec classes", but won't be linked to each other.
If this workaround can work, this is how the structure of data will look like:
1. Custom post types:
( ref: https://toolset.com/documentation/getting-started-with-toolset/structure-your-data-with-custom-post-types-fields-and-taxonomies/#create-custom-post-types-from-the-toolset-dashboard )
- Dive Schools: will hold posts for each dive school
- Countries: will hold posts for each country that will be later used in the location filter.
- Cities: will hold posts for each city that will be later used in the location filter.
2. Custom taxonomies:
( ref: https://toolset.com/documentation/user-guides/create-custom-taxonomies )
- Professional classes: will hold terms for professional class names
- Rec classes: will hold terms for rec class names
3. Custom field:
( ref: https://toolset.com/documentation/user-guides/using-custom-fields/ )
- Price: a number field that will be attached to the "Dive Schools" post type.
4. Post relationships:
( ref: https://toolset.com/documentation/post-relationships/ )
- Country -> City: A one-to-many relationship between countries and cities post types, as one country can have multiple cities.
- City -> Dive School: A one-to-many relationship between cities and dive schools post types, as one city can have multiple dive schools.
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar