I have an acf_form submitting via AJAX. I understand that acf.validation.toggle has been removed as of 5.7 (why??). I attempted to replace it with acf.unlockForm, and the submission will go through, all the JS code runs and works, except the call to acf.unlockForm.
Why does the form lock itself without any of my code getting thrown in, but requires me to call an unlock on it? I’m guessing because I’m actually handling the AJAX?
What is the best way to have an acf_form printout, with display and validation handled by acf, but I get to hook onto the form to clear only specific fields and things?
This is the slightly anonymized version of what I’m currently doing (in 5.6.10):