In case somebody else is looking to implement auto-complete for ACF and stumbles upon this thread – as I did -, there is a topic on this on WPSX:
How to implement jquery-ui autocomplete into custom fields?
Basically you just would need to print out all available values inside the admin head. There is another topic that covers how to do that:
getting all values for a custom field key (cross-post)
thanks @elliot,
I didn’t specify the field_groups as an array. That’s what caused the error. D’oh.
You are right @elliot, I left out some bits of information.
I am using the form on the Buddypress user profile page so users can add more info about themselves. I have two calls of register_field_group() in my functions.php – one for the edit view of the user profile and one for the public view of the profile. Basically a user edits the profile, previews it and can hit a little checkbox below to “publish the profile” which internally restricts the user from changing the profile again (client wants to review user profiles so this is necessary).
So I have these two field_groups that I would like to display in two different locations of the user profile in the theme. Omitting ‘field_groups’ will render both field groups at both locations of the form as I have these location rules in my registration calls:
...
'location' => array (
array (
array (
'param' => 'ef_user',
'operator' => '==',
'value' => 'all',
'order_no' => 0,
'group_no' => 0,
),
),
),
...