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 ( Or is there a way to give the Duplicate button a custom JS function to empty the input field?

    Thanks for the help.