Home › Forums › Backend Issues (wp-admin) › Repeater to manage a custom post type › Reply To: Repeater to manage a custom post type
The problem is that you are using a repeater, so you need to find out if there are duplicate rows.
I have an old example of doing this here https://github.com/Hube2/acf-filters-and-functions/blob/master/unique-repeater-sub-field.php
But, if this is a readonly field then you will need to generate the unique ID in JavaScript. This depends on how you are generating the unique ID to begin with.
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.