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…