Home › Forums › Backend Issues (wp-admin) › Repeater to manage a custom post type › Reply To: Repeater to manage a custom post type
Hello John
Thank you very much for the advice. The setting described is really very similar and the procedure described has brought me further.
After thinking about it for a while over the weekend, I decided to stick with the ID field. I restarted from scratch and I could fix the problem when deleting a Row and passing the ID field (the ReadOnly code was not commented everywhere…).
Now I stumble upon another problem. When a Row is duplicated, all values are duplicated (including the ID). So in the repeater loop an ID can appear multiple times and that makes checking what is new/edited/remained the same complicated.
I thought that the ID field can be defined as unique according to your post (https://tinyurl.com/2dqajbcf). Or is there a way to give the Duplicate button a custom JS function to empty the input field?
Thanks for the help.
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.