Home › Forums › Front-end Issues › Multiple acf_form one submit › Reply To: Multiple acf_form one submit
In this case, you need to set the form option to false
and add the form and submit button tag manually. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/acf_form/. It should be something like this:
<form id="post" class="acf-form" action="" method="post">
<?php acf_form(array(
'field_groups' => array(7),
'form' => false,
)); ?>
<?php acf_form(array(
'field_groups' => array(9),
'form' => false,
)); ?>
<div class="acf-form-submit">
<input type="submit" class="acf-button button button-primary button-large" value="Update">
<span class="acf-spinner"></span>
</div>
</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.