Home › Forums › General Issues › Populate / Edit Taxonomy Fields on an Edit Screen › Reply To: Populate / Edit Taxonomy Fields on an Edit Screen
Yes, this is possible, but complicated, and I don’t have any specific code to share.
For the first bit, populating fields when a term is selected, you need to write JavaScript that makes an ajax request to get and populate the fields when the tax field changes. https://www.advancedcustomfields.com/resources/javascript-api/. There are some examples of doing similar things here (some work, some do not) https://github.com/Hube2/acf-dynamic-ajax-select-example.
You’ll also need to create an acf/prepare_field filter that will load these fields’ values with current values from the term when a post is edited to reflect any changes made from another post.
For the second part you need to create an acf/save_post filter that takes the submitted values and updated the term.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.