Drupal 7 Views Autocomplete Filter

By shane
Mon, 2013-02-25 22:08
Daily Dose of Drupal Episode #116

The Drupal 7 Views Autocomplete Filters module adds the ability to create Views exposed filters that are autocompletes. This is useful to replace the traditional text field exposed filter or even a drop down exposed filter.

In this episode you will learn:

  • How to create a simple Drupal view with an Autocomplete exposed filter
  • How to create a more complex Drupal view using an Entity Reference field with an Autocomplete exposed filter

Thanks to Drupalize.me for sponsoring this episode.

Need to learn more Drupal?

Premium Drupal Training Online (Horizontal)


…what I needed: Entity reference autocomplete exposed filter. Cool! Thanks!

Hi there, thanks for this tutorial.

I've done more or less the same but instead of creating a page I've created a block:
1st issue: the text box goes beyoond the boundaries of the block, how can I male it fit?
2nd issue: if I activate the autosubmit, hidding the apply button the moment I start to write in the text box the candidates appears just an instant and the go away not letting me choose, so as result the border of the text box turns red, as it was an error. Actually, if I go to the view editting page and I taste from there the filter, the minute I put a letter I got this:

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: http://parles.upf.edu/en/admin/views/ajax/autocomplete/taxonomy/14
ReadyState: 4

And then a new page with the filter saying this: Unable to find term: f (the letter I just reached to type)

Thanks for your help.

Fix unable to find term with setting of 'error display' on the exposed filter.

Set of the AJAX by setting advanced -> exposed form to input required and ajax to yes

it is possible to show a phare "no match" when the form find no result?
i set ajax yes and exposed form to input required but the only thing is the input border red

Post new comment