Home Forums Add-ons Repeater Field Disable 'are you sure' on repeater delete


Disable 'are you sure' on repeater delete

  • ACF is easily the most useful WordPress plugin ever made. Just one small annoyance has appeared. Now repeater fields ask ‘are you sure?’ every time you try to delete an item. As nothing gets saved until you click Update, and with revisions available in case of mistakes, this ‘feature’ looks like an unnecessary and clunky addition to an otherwise excellent UI. Can this annoying new feature be disabled?

  • If you search the forum, this was an often asked for addition. I’ve found that double clicking the delete row icon causes it to be immediately deleted. You don’t need to actually click on “remove”. I dug around in ACF and cannot find a way to remove this feature and I’d suggest submitting a new support ticket here

    • Rasso

    • July 29, 2018 at 4:56 am

    I know, I’m late to this post. Still, here’s a quick and easy solution:

    $('.acf-form').on('click', '[data-event="remove-row"]', function(e) {

    …mimics the double click 🙂

    • jcow

    • July 4, 2019 at 2:30 am

    This worked great. Thanks @rasso!

    • gavin310

    • September 30, 2020 at 12:02 am

    This works for me:

    $( 'body' ).on( 'click', '.acf-fc-layout-controls .acf-icon.-minus', function( e ) {
    	$( this ).click();
    } );
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.