Add a filter to a view
Last updated on
12 April 2022
- Navigate to the edit screen for a view (for example, admin/structure/views/view/MYVIEWNAME/edit).
- In the Filters section, click Add.
- In the For field, select one of the following options:
- All Displays The filter will be added to all of the displays in the current view.
- This Page (override) The filter will only be added to the current display.
- From the list, select one or more filters. Tip: You can filter the list by typing in the Search box or by selecting from the Type dropdown list.
- Click Apply. The Configure Filter Criterion dialog box displays.
- In the Operator dropdown list, select an operator. If the selected operator requires one or more values, enter them in the fields provided.
- Click Apply.
Although a filter for float fields can be added it is not generally a good idea to compare floats. The warning in the PHP manual about floating point numbers has more information.
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion