Home › Forums › Front-end Issues › acf-form() in ajax call : how to fire the action ? › Reply To: acf-form() in ajax call : how to fire the action ?
How is the modal loaded? Is it a div inserted into the page? Is it in an iFrame? The problem is that the needed JS for the fields you mention isn’t being loaded because the fields are loaded later.
I just found this older topic where the developer answer this, let me know if it still works. https://support.advancedcustomfields.com/forums/topic/using-acf-form-in-ajax-call/, or is this what you’re referring to.
If it’s still not working then make sure you’re calling `acf_form_head()’ and ‘wp_footer’ in the right places, these are other causes for things not working correctly.
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.