I have a content type with a Node Reference set to Auto Complete and looking at a vanilla References View. I only have about 30 items in the View but when I try to type in the AutoComplete field, NOTHING comes back--IE it spins and just sits there. When I set it to a Select list, I see the Values. Help?

Comments

delphian’s picture

This could happen if the view is depending on an argument (or is trying to provide a default value for the argument based on the context) and it is not being provided. For instance:

1) You are editing a node reference field on a taxonomy term page.
2) The view reference display you have configured is setup to only show content associated with the 'current' taxonomy term.
3) In the view, the taxonomy term argument is provided by the current context if no value is available.

If your widget is setup to be list or select box then the view will be able to determine the current context (a taxonomy term) and provide a default value. It can do this because the context is determined while the form is being loaded. But if you are using an autocomplete field, the json callback to drupal provides no context and the view has no idea what page it is being accessed from.

This solution is not generic enough to be a patch, but is good start at coding up a possible solution: http://activelamp.com/blog/customize-autocomplete-fields-results-you-want