I've got content-type includes 'field1' and 'field2'. These fields are integer value. Thanks to Views module I created page 'Page1' with contents. In main menu I've got search whit some filters. After filling filters and entering, we can see appropriate contents in 'Page1'. I'd like to create filters or fields in search to allow user to fill in 'min' and 'max' values. After it I want to choose a content only if 'field1' and 'field2' of that content is beetwen 'min' and 'max'. How can I do it?
Make use of the contextual range filter module to create a filter range on your field 1 and field 2 and expose the filter
is a simple plugin for Views that adds the option to contextually filter, not just by a single value, but also by range.
Numeric, alphabetical (string) and list ranges are all supported. Node ids, user ids and even taxonomy term ids are all special cases of numbers so will work also. Range-filtering on the "created" (posted) and "updated" (last modified) node properties is also supported, provided you use the correct format as dictated by Views. So, YYYYMMDD for full dates or one of the shorter year+month, year-only, month-only, week-only and day-only formats.
Once you have installed the modules. Go to the views display you are working on, and under the filter category, select add.
Choose the field1 you created with an integer field and click add to display
Check the box expose filter to visitors. In the operator drop down, select is between and two text box should appear(min and max). Click on apply and you should see the form on top of your display. Do the same for field 2