• Resolved tomo55555

    (@tomo55555)


    Hi,

    I’ve created an ACF Frontend form using your plugin. The form is allowing the form user to create a new user account and new post. The form saves successfully, but not all acf fields are save to the post.

    Do we have to save each field as metadata?

    When I look at the saved post in the backend I also notice that only some of the acf fields have been populated, this makes me feel that I’m missing a setting, or there is a problem saving to the database for some acf fields. Have you come across this issue before?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    In fact, you have to select each ACF Field you want to be saved as metadata in the “Save ACF Fields” setting of your “Post Action > Save” tab, in the Form UI. Otherwise they won’t be saved.

    Here is a video demo showing how to use this setting, with a Test Form that creates a New Post, similar to your setup. As you can see, if the fields are not checked in the “Save ACF Fields”, they aren’t processed.

    If you want to test the form from the video, here is the Form Json export, and the Field Group Json export. Save each json code in a file, and import the Form from the “ACF > Tools > Import Forms” tool, and the Field Group from the “ACF > Tools > Import” Tool, in the WP Admin menu.

    The Form is named my-form, and will create a new post of the Post Type: Post. The Field Group is named My Form and is displayed on each posts in the WP Admin.

    In case of doubt, you can export your Form Json + your Field Group Json and share it here. So I can check the configuration, see if everything is okay.

    Thanks!

    Regards.

    Thread Starter tomo55555

    (@tomo55555)

    Thank you very much for the great support. I was confused why we would need to manually select each field as I couldn’t think of a situation where you wouldn’t want this information saved.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello!

    I’m glad to hear it now works as expected.

    There are various situations where this logic is important, especially in complex front-end forms setups. I answered to your review with some examples here: https://www.ads-software.com/support/topic/loses-acf-input-data/#post-18015524.

    Thanks!

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.