Please refer to hidden link, I want to filter some of the districts when I change the locations, there is a relationship between locations and districts, I use the generic field in the form because of both the location and district will increase the number of posts. Below please find the code
Hello. Thank you for contacting the Toolset support.
As I understand your request that you want to implement the dependent dropdowns where when you select any location from location dropdown it should update and display the associated related Districts.
There is no such feature available with Toolset forms using which you can implement the dependent dropdowns.
Regarding relationship forms - relationship forms are used to connect the posts that mean to make a connection between post types for which you created post type relationship. Again, this will not feature the requirement you want that when you select one post it will update another dropdown with the associated related post.
Thanks for your reply. May I know how I can use View to build the selection with a custom attribute and then feed into the generic field? Currently I use View to build the json format and feed into the generic field, here are the solution.
Basically - there is no option to build the dropdown the way you want. Because as you setup the dropdown using views which passes the JSON string which eventually generates the dropdown options.
This requires custom programming which is beyond the scope of our support policy. If you need custom programming for your project, please feel free to contact our certified partners.
=> https://toolset.com/contractors/
I understand there is no such option to build the dropdown the way I want, do you have any other sample how the Views can implement the use of the relationship between parent and child post? I need some to inspire me somethings.
do you have any other sample how the Views can implement the use of the relationship between parent and child post?
=> Sorry - I do not get your point. you want to display the related (parent/child) posts using views?
In addition to that, the only way you can have dependent dropdown is using parent and child post types. Please check our real estate reference site where you will find the views filter "State" and "City". Where it will update the "City" dropdown based on the "State" selection. hidden link