Home › Forums › Backend Issues (wp-admin) › Problem using acf_form() in backend › Reply To: Problem using acf_form() in backend
John, thanks for your help. The problem is something related to what you mention, although the call to acf_form_head() was there since without it it doesn’t even render the form, the problem was that I needed to put this code that apparently calls all the jquery dependencies of the forms rendered with acf_form()
acf.do_action('append', jQuery('.modal_editar'));
So I can tell the community if you’re going to use acf_form inside a loop or if you’re going to use it with ajax, make sure you use this code.
NOTE: Replace .modal_editar with the wrapper of your acf_form()
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.