Support

Account

Home Forums Front-end Issues Saving Grouped Fields in a Front End Form

Unread

Saving Grouped Fields in a Front End Form

  • I have a form to edit posts in the front end. Most of the fields are working, except I have a grouped field with two nested text fields inside of it. These fields are not saving. When editing from the backend they do work.

    If I run some logging on the acf_update_metadata() function, I see that for the front end form its trying to pass an array to the update_metadata function

    For the grouped field the name is the group name, value is an array of values.

    When I save from the back end, I can see that each subfield is passed through the acf_update_metadata() function with name = groupname_fieldname, and value is the value.

    It appears I need to do some preprocessing on group fields, is that correct? I cannot find any documentation on that…

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.