Home › Forums › General Issues › Conditional nested relations? › Reply To: Conditional nested relations?
There are no examples of doing this with a relationship field.
You need to build custom JavaScript for ACF.
You need to add an action that fires when the first field is changed that does an AJAX request to get values to populated the other field.
This is easier to do using dynamically populated select fields. https://github.com/Hube2/acf-dynamic-ajax-select-example/tree/master/dynamic-select-example
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.