Home Forums Add-ons Repeater Field Acf Form (front end) alert for delete in repeater?


Acf Form (front end) alert for delete in repeater?

  • Hello, I am using acf form for front end, and I need to add some changes. Frist, I need to add Alert for Delete row in repeater, for admin part I see that action exist:

    add_action('acf/input/admin_head', 'my_acf_admin_head');
    function my_acf_admin_head() {
        <script type="text/javascript">
            (function($) {
                acf.add_action('ready', function(){
                    $('body').on('click', '.acf-repeater-remove-row', function( e ){
                        return confirm("Delete row?");

    but this not working on front end?

    Second I need to use functionality for ‘Minimum Rows’ (open first-row repeater on load) but I need to disable alert(‘Minimum rows reached ({min} rows)’)

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.