Hello everyone,

I have a content type that has a field collection. In that field collection is a field which is an entity reference field. On this entity reference field I have MODE -> "Views: Filter by an entity reference view" selected and then have my Entity Reference View chosen. My Entity Reference view is a a field collection view and produces the expected results in the view preview. On my entity reference field I have it set to widget type = autocomplete. When typing in the autocomplete field I expect to get one of the results in my Entity Reference View preview but I don't. If I change my widget type to select list, that works and I see my correct view results in the select list.

Am I missing something to get autocomplete working? I made sure to choose the correct field I would like autocomplete to use for searching in my view under Format -> Entity Reference List -> Settings.

Drupal 7.15
Entity reference 7.x-1.0-rc5
Entity API 7.x-1.0-rc3
views 7.x-3.5
Chaos tool suite (ctools) 7.x-1.2

Thanks for reading,
-Tim

Comments

Hooker’s picture

I have the same problem I have a view user format entity reference list, when I choose the widget select list it works but doesnt with autocomplete (even tag style) ...

I dont know what to do :'(

Anonymous’s picture

Have you tried other autocomplete fields such as a tags field? The problem may be more than just the entity reference field?

TimG1’s picture

Hi. Yes, for me other autocomplete fields work fine. I've only noticed this on the entity reference list.

FiNeX’s picture

Same problem here using current -dev versions.

johnri99’s picture

I'm having exactly the same problem, I am trying to get a user selected on a field I have created called Real Name, but it will not find people. It does search if I make the referenced field the user name, which suggests that it is not creating an index of this field, this is despite selecting the field as one to search in the Entity Reference settings

GlitchFreak’s picture

Are you using field collection table as the formatter? If so, this might be related to #1945998: Autocomplete of reference fails in second row

johnri99’s picture

I found a way to make it work but it needs a patch, see http://drupal.org/node/1893478

Hopefully this will work for others

Anonymous’s picture

I found the issue could be fixed by disabling the "hide blank items" checkbox in the field collection at the content type level.

b.ravanbakhsh’s picture

@martinjbaker you save me a day, God bless you

Maurice M.’s picture

Issue summary: View changes

I had this issue with a node reference autocomplete widget. Maybe I can safe someone some time to explain what was going wrong in my case.

I tried to add English nodes to my Portuguese node. This resulted in no JS errors and there was a normal request to the autocomplete js with no results.

If you have translation disabled for your content type you will have to activate this and change the language on all your nodes that are not right. (this can be done in the DB aswell in the node table, maybe faster for alot of nodes, or bulk operations "change value"). If the node you are looking for has the same language of the node you are on, autocomplete nodes will be shown.

valderama’s picture

Seems like there is problem for all views which join another table using "Relationships" in Views.

I found this issue here, and patch in comment #8 fixed the problem for me.

saradaprasad17’s picture

Version: 7.x-1.0-rc5 » 8.x-1.x-dev
Issue tags: +Blocks not listing in block entity reference autocomplete

I have created a custom block types ..i want to add blocks ,but the blocks are not displaying .

kclarkson’s picture

I have just installed Enforce User Profile fields and when user attempts to select their college or department it Autocomplete does now work.

apaderno’s picture

Issue tags: -Blocks not listing in block entity reference autocomplete