Just added a Filter for that custom field `
add_filter(‘acf/fields/user/query/name=customfieldname’, ‘acf_refernt_field_filter’, 10, 3);
function acf_refernt_field_filter( $args, $field, $post )
// modify get users args of that field
$args[‘role’] = ‘my-custom-user-role’;
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users