Home › Forums › ACF PRO › ACF Form + JS After Post Submission › Reply To: ACF Form + JS After Post Submission
Hi @ryandorn
I’m afraid acf_form() is designed to redirect the user after the form is successfully submitted. If you need to do it using AJAX, then you need to create a handler to handle the submitted data. This page should give you more idea about it: https://codex.wordpress.org/AJAX_in_Plugins.
In the custom handler, you can use the update_field() function to add the value to the post.
I hope this makes sense 🙂
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.