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
Comment #1
Hooker CreditAttribution: Hooker commentedI 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 :'(
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedHave you tried other autocomplete fields such as a tags field? The problem may be more than just the entity reference field?
Comment #3
TimG1 CreditAttribution: TimG1 commentedHi. Yes, for me other autocomplete fields work fine. I've only noticed this on the entity reference list.
Comment #4
FiNeX CreditAttribution: FiNeX commentedSame problem here using current -dev versions.
Comment #5
johnri99 CreditAttribution: johnri99 commentedI'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
Comment #6
GlitchFreak CreditAttribution: GlitchFreak commentedAre you using field collection table as the formatter? If so, this might be related to #1945998: Autocomplete of reference fails in second row
Comment #7
johnri99 CreditAttribution: johnri99 commentedI found a way to make it work but it needs a patch, see http://drupal.org/node/1893478
Hopefully this will work for others
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedI found the issue could be fixed by disabling the "hide blank items" checkbox in the field collection at the content type level.
Comment #9
b.ravanbakhsh@martinjbaker you save me a day, God bless you
Comment #10
Maurice M. CreditAttribution: Maurice M. commentedI 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.
Comment #11
valderama CreditAttribution: valderama at Form & Code GmbH commentedSeems 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.
Comment #12
saradaprasad17 CreditAttribution: saradaprasad17 commentedI have created a custom block types ..i want to add blocks ,but the blocks are not displaying .
Comment #13
kclarkson CreditAttribution: kclarkson commentedI have just installed Enforce User Profile fields and when user attempts to select their college or department it Autocomplete does now work.
Comment #14
apaderno