For example, use the admin_footer action (and use get_current_screen() to check that you’re on the right screen), to emit a script tag that hooks into the html emitted by the repeater support code.
You would have to figure out how you want to identify the copy from and copy to locations (if you made it always be the last two items, that would simplify your work for your initial draft).
Anyways, not a completely trivial task (but much easier if you limit yourself to just the fields you’re actually using than if you try and build a general structure that anticipates future acf changes).
If you go this route, you’ll also need to leave some notes on how to test a new acf update to make sure your mechanism still works with it.
Manually copying the contents might be a bit more work than using an automated mechanism, but unless this gets used a lot, it might actually wind up being a lot less work in the larger scheme of things.
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 21, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.