I thought doing something like this
function acf_load_titles_field_choices( $field ) {
wp_enqueue_script('summary', get_template_directory_uri() . '/inc/js/summary.js', array(), '1.0.0', 'true' );
}
add_filter('acf/load_field/id=field_6218bb3d7551a', 'acf_load_titles_field_choices');
But of course it doesn’t work