Home › Forums › Feature Requests › Flexible Content : Confirmation before deleting the layout › Reply To: Flexible Content : Confirmation before deleting the layout
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!
Are you an advanced @wp_acf user eager to learn Headless #WordPress?— WP Engine Builders (@wpebuilders) December 5, 2022
This upcoming webinar hosted by @J_Everhart383 was made for you.
👉 Register now: https://t.co/NrzWJZbdoN
Building Your First Headless WordPress Project with ACF + @wpgraphql 🎉 pic.twitter.com/ymyuPqkY2F
© 2022 Advanced Custom Fields.