Support

Account

Home Forums Feature Requests acf_form argument to prevent duplicate input[type="hidden"]

Helping

acf_form argument to prevent duplicate input[type="hidden"]

  • I am using multiple acf_form calls to pull fields into different div on the same page.

    This causes a duplication of the input[type=”hidden”] that are required for the POST request.


    <?php
    $options = array(
    ‘fields’ => array( ‘first_field’, ‘second_field’ ),
    ‘form’ => false,
    ‘show_hidden_inputs’ => false, // proposed argument
    );
    acf_form( $options );
    ?>

    Could I request an argument for acf_form to prevent output of the hidden inputs?

  • I just leave a answer here to say that I would also love to have a way to avoid duplicate ID when multiples acf_form() are used.

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

The topic ‘acf_form argument to prevent duplicate input[type="hidden"]’ is closed to new replies.