Home › Forums › Front-end Issues › Frontend acf_form(): ReferenceError: wp is not defined in input.min.js › Reply To: Frontend acf_form(): ReferenceError: wp is not defined in input.min.js
Hi John, I have a lot of different field types in my form. Tested it with simple text fields only after your comment, but the error persists.
But good news – I solved it 5 minutes ago by adding wp-util
as a dependency to my main script:
wp_enqueue_script( 'app', asset_uri('assets/js/app.js'), array('jquery', 'wp-util'), null, true );
So maybe you guys just forgot to add it as a dependency in 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.