It now works with this line:
$choices = get_field('test2');
I might have some other problems later on as i need to change this quite a bit. Thanks for the help!
This is the output:
Array
(
[0] =>
)
Array
(
[] =>
)
test1
I tried to delete the acf form and re-created it using different names but still it doesnt catch any of the values.
Do i have something wrong with these lines:
function my_acf_load_test1_field_choices( $field ) {
or
add_filter('acf/load_field/name=test1', 'acf_load_test1_field_choices');