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)

The topic ‘Serializing repeater fields not saving correct order?’ is closed to new replies.