I am trying to attach a list of users to a new entity I am creating. I want to enable autocomplete on those fields but I can't get it to work.

For the moment, my field looks like this :

      'field_name' => 'users',
      'cardinality' => FIELD_CARDINALITY_UNLIMITED,
      'type' => 'text',

And my instance looks like this:

      'field_name' => 'users',
      'label' => 'Users',
      'required' => true,
      'widget' => array(
        'type' => 'textfield',
        'autocomplete_path' => 'user/autocomplete',

Thanks for your help !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.