Home › Forums › General Issues › Where is the best place for updating hidden fields in acf_form()? › Reply To: Where is the best place for updating hidden fields in acf_form()?
Hi @artfulcat
I believe it’s because the database doesn’t have the reference key for the new custom field entries. This page should give you more idea about it (under the Basic (field key) section): https://www.advancedcustomfields.com/resources/update_field/#usage. To fix it, you need to use the field key instead of the field name like your solution.
If you want to show certain the field groups or custom fields, I think you can use the “field_groups” and “fields” options. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/acf_form/.
I hope this helps 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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.