Home › Forums › Backend Issues (wp-admin) › OnChange Select DropDown › Reply To: OnChange Select DropDown
The walkthrough to follow.
On javascript you should
– get the user ID (there are functions to do that)
– add it to the ACF ajax query.
For the other fields depending on user ID value :
On PHP you should use query filters (there are some for taxs, posts, relations)
– get the $_POST[ID] (added by JS before)
– use it.
When you load the page (ie for an update) , $_POST[ID] does not exist but you can use get_field if you need to use your query filters with user ID
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.