Home › Forums › General Issues › Hide values that have been selected in other field › Reply To: Hide values that have been selected in other field
Exactly what I’m looking for but for a soccer team 😉 . I’m investigating on this and check some solutions.
It is not possible on php side because there is no hook when you add/remove an item in one field.
Seems to be possible using JS API… but I need to pass items list (available in PHP)
What I’ll try :
managing add/remove hook using JS API
launch an ajax request that manage the selected list (as global) and add/remove items depending on the selection.
I need to filter the available items through javascript by reading through ajax the PHP list …
Should do the trick but it seems hi level dev…
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.