Home › Forums › Backend Issues (wp-admin) › Pre-Populating a single field within a Repeater › Reply To: Pre-Populating a single field within a Repeater
The main issues is that you are repopulating the values of the “Title” field after saving. This is removing the values. You have 2 choices here.
The first is to not populate the “title” in each row if the field already has values. You need to test the value pasted to your filter by ACF and if it already contains values then you do not run your code.
The second is to somehow loop through the existing values and repopulate the title sub field. I’m sure it’s possible, but complex, to do something like this.
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.