Right now, it’s hardcoded to just numbers, but I want to be able to replace these with icons. So a filter that feeds me the current row’s data so I can use it to return different text / a dashicon would be fantastic.
The ‘remove’ action is fired when adding a new row due to the logic within the acf.duplicate() function.
ACF duplicates the element (repeater row) and runs the ‘remove’ action on the newly created row. This removes unwanted elements and reverts the row to it’s ‘default’ state, so that the ‘append’ action can run as intended.
I’m sure there is a way for your JS to work.
Can you specify exactly what part of your JS code is not working as intended because of this?
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users