Home › Forums › ACF PRO › ACF Frontend Redirect Issue › Reply To: ACF Frontend Redirect Issue
I didn’t wait for an updated version of ACF to solve this issue (I posted the support request nearly 2 months ago).
Instead I used a workaround in the form of some ACF form overrides, a custom AJAX callback, some ACF actions and some WordPress AJAX actions. This sends its own modified AJAX request to ACF, and some hooks perform some overrides to return JSON objects (for validation and saving respectively) rather than just redirecting. Then I was able to capture that data to do whatever I wanted (in this case displaying a success message rather than redirecting).
See the following code sample: http://pastebin.com/L55bNyu7
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!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.