Support

Account

Home Forums Front-end Issues Multiple acf_form one submit Reply To: Multiple acf_form one submit

  • Hi @dilladakilla

    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 🙂