2

I have a height field for users.

How can I make a simple filter in views where visitors can search to and from?

Like:

Search users: From 150cm To 180cm

Thanks, Bruno

1
  • i was sure it's a duplicate, but surprisingly I can't find it asked before, not in general way. Nice! It sure should be here, simple thing that's easy... once you know it.
    – Mołot
    Jul 17, 2015 at 6:59

1 Answer 1

3

You can do it from views itself from the filter criteria.

enter image description here

Or if in need of additional options try out the Better Exposed Filters

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

2
  • 1
    This works very well, the search can be done "from and to" However, there is no drop down when entering user details, and then there is no drop down on filter views... How can I get all of this to work with drop downs, want it to work like the image below: Thanks pasteboard.co/21usKn1U.png Jul 17, 2015 at 13:31
  • Better exposed filters don't work very well , the order doesn't get saved.... Aug 25, 2015 at 13:48

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.