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

Supporting organizations: 
franksj is a senior Drupal developer with Breakthrough Technologies.
Assisted with the port to D8; D9 release; and continued maintenance

Project information

Releases