Home › Forums › Add-ons › Repeater Field › add_row functions add double rows › Reply To: add_row functions add double rows
I am having the same issue and no explanation, it was working and suddenly started creating double entries for the repeater field. I have registered license for the plugin. Please advice.
This is my code
// Target form and add row
function set_structure_note( $entry, $form ) {
$structure_note = rgar( $entry, ‘1’ );
$note_user = rgar( $entry, ‘4’ );
$row = array(
‘structure_note’ => $structure_note,
‘structure_author’ => $note_user,
);
add_row(‘structure_notes’, $row);
};
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.