Support

Account

Home Forums Bug Reports hidden fields on frontend header

Helping

hidden fields on frontend header

  • ACF is adding some hidden fields on frontend, e.g.
    <script type=”text/javascript”>
    jQuery(document).ready(function(){
    jQuery(‘form.acf-form’).append(‘<input type=”hidden” name=”acf[post_ID]” value=”1689″/>’);
    jQuery(‘form.acf-form’).append(‘<input type=”hidden” name=”acf[frontend]” value=”true”/>’);
    });
    </script>
    As there is no form.acf-form on fronteand, i guess that may be wp_head hook is used instead of admin_head by mistake somewhere

  • If you include the acf_form_head() then the script will be included. This function should only be included in the template before theget_header() call. https://www.advancedcustomfields.com/resources/acf_form/

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

The topic ‘hidden fields on frontend header’ is closed to new replies.