Support

Account

Home Forums Backend Issues (wp-admin) Flexible content layout title binding to select change

Helping

Flexible content layout title binding to select change

  • Hi,

    So I’ve created a custom title for my flexible content field in the back-end by using:

    add_filter(‘acf/fields/flexible_content/layout_title’, ‘my_acf_flexible_content_layout_title’, 10, 4);

    Which works fine.

    However what I want to do is call that title function on change of a select inside that ACF flex content group, so that it updates dynamically. I have the JS select on change function running and returning a console message.

    $(‘#acf-field_59185f6a4ef94-0-field_591861b74ef95’).on(‘change’, function() {
    console.log(‘test’);
    })

    I’m just unsure how to bind it to that layout title function.

    Any help much appreciated.

    Thanks.

    Andy

  • Any luck on this @ajhisbrill ? I’m looking for the exact same feature…

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Flexible content layout title binding to select change’ is closed to new replies.