1

I'm using Drupal 7 and Views.

I have an exposed form of type "autocomplete".

I would like the suggestions to be clickable, which avoids having to click on apply.

Do you know how to do it ?

0

Install Better Exposed Filters module , got to your views, in Advanced section In Exposed form style: select better exposed .

The Better Exposed Filters module replaces the Views' default single- or multi-select boxes with radio buttons or checkboxes, respectively. Description fields and Select All/None links can be added to exposed filters to make for a better user experience. Views Filters is a powerful tool to refine the results returned by a given view. When you expose a filter, you allow the user to interact with the view making it easy to build a customized, advanced search. For example, exposing the node type field as a filter lets your site visitor limit their search queries to just blog entries. Better Exposed Filters gives you greater control over the rendering of exposed filters.

Why use this module? Because it provides a better user experience than the default option. Try telling a client that they should click on an option, then scroll to the next option and ctrl+click on it. Don't just click 'cause you'll lose your first selection. Oh, and ctrl+click again to unselect an option... Yeah, not user friendly.

additionally,

What else can you do with BEF?.
The BEF handbook page provides some basic recipes making exposed filters a much better user experience.

Add help text for each exposed filter Tame long lists with scrollable checkbox/radio button lists or select all/none links Provide instant feedback by updating the View using AJAX whenever an exposed filter is changed Use the jQuery Slider widget for greater-than, less-than or in-between types of filters If you've got any ideas not covered on the handbook page, add a feature request to the issue queue. You can also rate this module on DrupalModules.

| improve this answer | |
  • Thanks, i know this module, but the problem is that I want to have a form, not checkboxes – Hgfdsoiu Jun 26 at 15:49
  • @Hgfdsoiu what do you mean about the form? this module can support the autocomplete text field as well. – Yuseferi Jun 26 at 15:50
  • @Hgfdsoiu check better expose fields settings – Yuseferi Jun 26 at 15:51
  • @Hgfdsoiu what kind of field you have autocomplete? – Yuseferi Jun 26 at 15:54
  • This is the tags field. I am trying the module again ... – Hgfdsoiu Jun 26 at 15:55

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.