Hi, that’s one of my examples.
You don’t need to create a plugin, you can add the code directly.
acf/input/admin_enqueue_scripts hook. This goes in your functions php file.
Then there is the PHP side of the AJAX request, this also goes into your functions.php file. My example is built as a class, just because I use OOP for just about everything.
The main difference here is that you need to know what row of the repeater you are on. You can get the row by using
var $row = e.$el.closest('.acf-row');
from there you can do a find to get each of the fields in the row
// this will depend on what type of field you're getting var $field = $row.find('[data-key="field_xyz"] input');
Hope that is of some help.
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!