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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.