Home › Forums › General Issues › Filter relationship field by key from another field › Reply To: Filter relationship field by key from another field
The reason why is because you want to vary what is shown in the second field based in what is selected in the first field. This can’t be done using ACF without adding your own custom JavaScript to the admin and to be honest, I can’t help you do this. You’d need to filter what the ACF JS is sending in the AJAX call.
The best work around for this would be to create conditional fields based on the first field that show posts from the selected type, and I’m going to be honest, unless Type
is a taxonomy even this may not be possible to filter following the link that you posted. There have been many posts here on the forums about people having problems filtering relationship field choices by another custom field.
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.