Home › Forums › Feature Requests › Flexible Content : Confirmation before deleting the layout › Reply To: Flexible Content : Confirmation before deleting the layout
Hi @meneldil
It’s possible to add the confirmation box, but it won’t be working correctly. That’s because ACF won’t check if you click the “OK” or “Cancel” button so it will delete the layout no matter which one you click.
You can check how it works in “wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js” on line 1086.
If you want, you need to add the confirmation code in the core file (acf-pro-input.min.js).
I hope this helps 🙂
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.