0

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 ?

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.

  • 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 Jan 24 '14 at 4:55
  • can u please help me out by chat in getting this functionality – harshal Jan 30 '14 at 4:48
  • @harshal I am available on IRC with nickname RajeevK – RajeevK Jan 30 '14 at 4:50
  • is it #drupal-support – harshal Jan 30 '14 at 4:52
  • I cant see you on irc pls provide me some way to chat or some link – harshal Jan 30 '14 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.

Your Answer

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

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