Home › Forums › Add-ons › Repeater Field › Add new Row if Field Value changed › Reply To: Add new Row if Field Value changed
If both the input field and the repeater are shown then you cannot use add_row().
The reason for this is that with a priority of <10 ACF has not yet saved new values. When it does it saves the values that have been submitted in the repeater, overwriting the changes you made.
To add a row to the repeater you must alter the array in $POST['acf']['field_615acd90fb1e4']
to add the new row so that ACF can update the values.
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.