Home › Forums › Backend Issues (wp-admin) › Issues with Ajax dropdown change not fired › Reply To: Issues with Ajax dropdown change not fired
I’m not completely familiar with the acf js api in this case.
I would first figure out if the “on” function is actually being called
$field.on("change", function(e) {
console.log('my function was called');
Then I would figure out if the AJAX request is working.
Then, using the code you are using you will need to pass the current field to the function that updates the other field so that you can find that field. The field shold be in “e” somewhere in this case.
Unfortunately I also do not know how to use the ACF JS API to find sibling fields in a repeater, or even if it is possible. I have a tendency to side-step the API.
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.