Home › Forums › Front-end Issues › Validate value › Reply To: Validate value
You are attempting to enqueue the scripts after page output has started. Also, since acf_form_head() is not called that I can see acf is unable to process anything that is submitted. Calling acf_form_head() before output starts would do the enqueuing that you are attempting to do yourself. It is impossible to make acf_form() work without acf_form_head() and this must be called before any html output has started.
I would try the following, it’s just rough and I don’t know if it will work. You need to call acf_form_head() at a point that get_current_screen() is available
add_action('admin_init', 'my_admin_acf_form_head', 20);
function my_admin_acf_form_head() {
$screen = get_curretn_screen();
if ($screen->id == 'your screen id') {
acf_form_head();
}
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.