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
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.