Home › Forums › Front-end Issues › Adding a sub field to a repeater with JavaScript › Reply To: Adding a sub field to a repeater with JavaScript
This works great for my use, however is there a way to set the value of this additional repeater row dynamically rather than just adding a blank row?
$row = repeater.add(); doesn’t seem to have any options? $row = repeater.add(‘value’); would be great, otherwise is there any other way with the JS API to do it or does it need to be done with basic jquery targeting the new element?
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.