Home › Forums › Front-end Issues › Clear/reset form after submit › Reply To: Clear/reset form after submit
To be honest, I haven’t got a clue, so this is just a guess. You could try removing the $post_id query argument in your pre_save_post filter.
I don’t think that resetting the form before it is submitted is a good idea, which is what I’m assuming that the JS code above is doing. Wouldn’t that cause default values to be sent in the submission of the form? More than likely that code is never happening or you’d see other problems. You might be able to reset the form on the acf/ready JS action https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/, but I’m not sure.
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.