Support

Account

Home Forums Backend Issues (wp-admin) Generating multiple forms on the same page (and saving them) Reply To: Generating multiple forms on the same page (and saving them)

  • i have done it before , but i don’t remember exactly how 😀
    i think you should set ‘form’ attribute to ‘false’ and then at the end of the page add a custom submit button , like this

    <?php
    acf_form(array(
    	'post_id' => $post_id,
    	'form' => false,
    	'field_groups' => array(397),
    	'return' => add_query_arg( array( 'post_id' => $post_id, 'updated' => 'true'), get_permalink() ),
    ));
    
    acf_form(array(
    	'post_id' => $post_id,
    	'form' => false,
    	'field_groups' => array(397),
    	'return' => add_query_arg( array( 'post_id' => $post_id, 'updated' => 'true'), get_permalink() ),
    ));
    ?>
    
    <input type="submit" value="send">

    you should use your own $post_id and "field_groups"
    i hope this will help