2

In a view the field which has widget autocomplete does not get an option to select as dropdown or autocomplete in exposed filter criteria. I have a field in a content type which has following properties.
Type : entity reference
widget : autocomplete
How can I set a exposed filter criteria field as autocomplete ?

3 Answers 3

4

You can use Views Autocomplete Filter for getting autocomplete exposed filter in views. Module page says :

Add autocomplete functionality to the views filter text fields.

 - It works for node titles or cck text fields.
 - The autocomplete results are actually the view results, so they are view related.

But the field which you will expose & use autocomplete should be in the views result fields as well.

5
  • oh, this is a nice hackey work-around :). +1 for I suppose a non patch approach to the problem! ymmv if you dont like extra modules for things.
    – tenken
    Commented Jan 24, 2014 at 4:55
  • can u please help me out by chat in getting this functionality
    – harshal
    Commented Jan 30, 2014 at 4:48
  • @harshal I am available on IRC with nickname RajeevK
    – RajeevK
    Commented Jan 30, 2014 at 4:50
  • is it #drupal-support
    – harshal
    Commented Jan 30, 2014 at 4:52
  • I cant see you on irc pls provide me some way to chat or some link
    – harshal
    Commented Jan 30, 2014 at 4:55
1

This drupal.stackexchange post shows that a current patch that needs review and is slated for 1.0 release adds this functionality to Views:

View with entityreference: make exposed filter autocomplete

The related issue queue request is here:

https://drupal.org/node/1492260

The answer to your question is to apply the patch found in the issue queue. If you dont know how to do that -- now is a great time to learn something new about patch files, Linux, DrushMake or Git.

0

For Drupal 8, apply the patch from Generalize TaxonomyIndexTid filter to be available for all entity reference fields.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.