Home › Forums › Front-end Issues › acf_form() within another form not working › Reply To: acf_form() within another form not working
Hi @gival146
When you set 'form' => false
, ACF won’t handle the form submission anymore, so you need to process the data yourself.
You can update the custom field by using the update_field()
function. To learn more about it, kindly check this page:https://www.advancedcustomfields.com/resources/update_field/. Also, please don’t forget to use the field key instead of the field name for the selector.
If you were using a plugin to add the existing form, then you need to execute the update_field()
function when the plugin is saving the submitted data. In this case, could you please ask the plugin author how to execute custom code when it’s saving the 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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.