I’m not familiar with this
{% if post.post_title == 'Submit' %}
{{ function('acf_form_head') }}
{% endif %}
But I suspect that the if’s are causing the function to not be called. Are the ACF scripts present in the outputed source? look for acf-input.min.js