views_fields_onoff provides a field handler to allows users to show or hide fields in a view!
When building a View with fields, you can select Global: On/Off Form, which allows display fields (fields not excluded from the display) to be switched on or off. In the exposed form area of the View display, a list of checkboxes for each selected field will appear. The user can check the fields to show or hide and apply it, then the field will be displayed or not displayed when the View displays! The selection of hidden fields will also exclude the de-selected fields from Views Data Export.
New Drupal 9+ Features
In addition to the field plugin, we now have a filter plugin. This gives users control over where in the exposed filters section the filter should go. It also allows for use with other modules like Better Exposed Filters.
Similar Modules
Project information
- Ecosystem: Views (for Drupal 7), Charts
- 453 sites report using this module
- Created by franksj on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.