Support

Account

Home Forums Front-end Issues How do I add submit button to field by field form?

Helping

How do I add submit button to field by field form?

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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.