Home › Forums › Add-ons › Repeater Field › Detecting change in javascript › Reply To: Detecting change in javascript
There is a way to add an action to a sub field of a repeater field.
The exact jQuery selector you’d use would depend on what type of sub field is involved.
I have several examples adding actions to acf fields in this repo https://github.com/Hube2/acf-dynamic-ajax-select-example including one that adds an action to a true/false field that is a sub field of a repeater https://github.com/Hube2/acf-dynamic-ajax-select-example/blob/master/unique-repeater-checkbox/unique-repeater-checkbox.js
I’m sure there are other ways to add actions other than the way I do it, but it’s what I’m used to.
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.