Support

Account

Home Forums Add-ons Repeater Field Serializing repeater fields not saving correct order?

Unread

Serializing repeater fields not saving correct order?

  • I have a form that allows you to edit a page via ajax and it includes ACF forms fields. However, if a repeater field is used and reordered then serializing the form is returning the original order and not the new order?
    ACF is indexing the repeater field inputs so when you use js serializeArray() it will always return the indexed order. But when you insert a new row or reorder the inputs inside a repeater field the indexed inputs do not update.
    How to get the reordered repeater field data via JS so that it can be saved correctly?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.