Home › Forums › Backend Issues (wp-admin) › Pre populate repeater in a flexible content › Reply To: Pre populate repeater in a flexible content
Unfortunately, there really isn’t a great solution available for this. When you have a flex field ACF creates a hidden copy of each layout. When you add a layout ACF copies that hidden version to create the new layout.
The correct solution would be to use the ACF JS API, see also: Adding custom javascript to fields. Because the repeater would need to be populated when the layout is added. Unfortunately I don’t now of any working examples of this to reference.
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.