Home › Forums › ACF PRO › Repeater Fields & Actions/Filters › Reply To: Repeater Fields & Actions/Filters
There is a hook that is fired when a repeater is added, this is in JavaScript. See Adding custom javascript to fields and JavaScript API. The hook you are looking for is append.
acf/load_field and other hooks should use the field key variation for repeater sub fields. However, most of these hooks only fire once per sub field. The acf/prepare_field fires on every instance, but this only fires for existing fields and will not work when a row is added to a repeater. There is also no way of telling what row of the repeater is being prepared for render.
Without using JavaScript you would have to do what you describe in your last statement about using acf/save_post.
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.