Home › Forums › ACF PRO › Unique, pre-populated repeater fields › Reply To: Unique, pre-populated repeater fields
You cannot generate different values for defaults, or any other value/setting of a sub field. The code for loading the sub field is run just once, each row will have the same value and this value is determined by what ACF puts in a hidden row in the repeater that it uses to copy it when a new row is created. There isn’t a way to do what you want for each row, unless you maybe use some custom JavaScript. https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/, in fact, I think this is the only way to achieve what you’re looking for.
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.