Home › Forums › Bug Reports › ACF Is Not Defined – Admin Dashboard › Reply To: ACF Is Not Defined – Admin Dashboard
This happens when I’m using the Post Object dynamic select. The solution ended up being found in a topic from 16′
https://support.advancedcustomfields.com/forums/topic/using-acf_form-in-admin/#post-38999
add_action('admin_enqueue_scripts', function() {
global $pagenow;
if ( 'index.php' != $pagenow ) {
return;
}
wp_enqueue_script('acf-input');
} );
Maybe a topic on this would be helpful to others in the future trying to do a similar feature.
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.