Skip to content

Reference

Jörn Lund edited this page Aug 31, 2018 · 3 revisions

JS Events

acf_duplicated_row

Fires after a repeater row has been duplicated.

Example

$(document).on('acf_duplicated_row',function(e){
    var $source = $(event.target), // the source row
        $clone = event.destination; // the copied row

    // do something ...
});

acf_duplicated_layout

Fires after a flexible content layout has been duplicated.

Example

$(document).on('acf_duplicated_layout',function( event ){
    var $source = $(event.target), // the source row
        $clone = event.destination; // the copied row

    // do something ...
});

acf_duplicate:<field_type>

Fires on each duplicated field before the value are copied from the source field.

See also: Third Party Fields

acf_duplicated:<field_type>

Fires on each duplicated field after the value were copied from the source field.