Home › Forums › ACF PRO › acf.validation.toggle(); function removed in 5.7 › Reply To: acf.validation.toggle(); function removed in 5.7
Hi @wilirius
Adding support for deprecated JS functions is something I spent some time solving in ACF v5.7.
In version 5.7.6, technically the acf.validation.lockForm()
no longer exists, however, it is still usable.
The acf.validation object inherits all functions from its “prototype” which you can inspect here acf.validation.__proto__
. This object does contain the lockForm() function so you can continue using acf.validation.lockForm()
without any issues 🙂
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.