Home › Forums › ACF PRO › ACF Form + JS After Post Submission › Reply To: ACF Form + JS After Post Submission
Hi @ryandorn
I’m not sure I understand your question, so forgive me if I’m wrong. The acf_form() function as default will add a GET parameter ‘?updated=true’ when the submission is succeeded. That way you can check this parameter and add the script if it exists like this:
if( isset($_GET['updated']) && $_GET['updated'] == 'true' ) {
// Your code here
}
If that’s not what you want, could you please explain it to me again?
Thanks 🙂
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.