I have a very long form that creates a custom post type. Because its so long it has to be broken up on the front end and I am doing so by using acf_form and using the ‘fields’ setting. Example:
$optionsLocation = array(
‘fields’ => array(‘field_5d1295443db3f’),
‘updated_message’ => false,
‘form’ => false,
);
acf_form($optionsLocation);
How do I create the submit button that will submit the form on the page? If I do something lke the following I get the button and it looks like it’s submitting but post is not created:
$optionsLocation = array(
‘field_groups’ => false,
‘fields’ => false,
‘updated_message’ => false,
‘html_submit_button’ => ‘<input type=”submit” class=”acf-button button button-primary button-large” value=”%s” />’,
‘form’ => true,
);
acf_form($optionsLocation);
Help?
There once was a man from Nantucket…..