Title: Appending items
Last modified: March 4, 2024

---

# Appending items

 *  Resolved [jeanius-design](https://wordpress.org/support/users/jeanius-design/)
 * (@jeanius-design)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/appending-items/)
 * Hi there,
 * Apologies if I’m missing something fundamental here.
 * How can I create a form that appends to a custom field instead of replacing?
 * I have created a form without loading existing values. I have then added a custom
   action which adds a new row to a repeater field.
 * The custom action does add the new row, but it replaces the field, so anything
   that was there before disappears.
 * For context, I want to make a list of documents. The form should allow me to 
   upload a new document to add to the list of existing ones without showing them
   all on the front end.
 * Is this possible?
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/appending-items/#post-17727088)
 * Hello,
 * Thanks for the feedback!
 * If you use the `update_field()` in to update your Repeater, it is normal that
   it “replaces” existing values. You should first get the existing value with `
   get_field('my_repeater', false, false)` and then append your row to the array.
 * Please note that it is important to get the “unformatted” value when it is going
   to be used to update a field. Specifically for complex fields like the Repeater.
   This is why you should use the last `false` argument in the `get_field()`. [See documentation](https://www.advancedcustomfields.com/resources/get_field/).
 * Hope it helps!
 * Have a nice day!
 * Regards.

Viewing 1 replies (of 1 total)

The topic ‘Appending items’ is closed to new replies.

 * ![](https://ps.w.org/acf-extended/assets/icon-256x256.png?rev=2071550)
 * [Advanced Custom Fields: Extended](https://wordpress.org/plugins/acf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-extended/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/appending-items/#post-17727088)
 * Status: resolved