Home › Forums › Backend Issues (wp-admin) › Relationship field – filter choices with AJAX › Reply To: Relationship field – filter choices with AJAX
Your documented filter relationship_ajax_data
exists and its working perfect! But like i do it with the select2 fields to “change” my result, i want to do the same with the relationship field. But the _result
doesnt exist and therefore i asked for a solution.
My target is to “disable” options in one relationship field if this item is selected in another. Bases on the query i couldnt do this easy with HTML and it would be better to modify the result coming via AJAX.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.