in Web & Tech

Hide Views Results until Exposed Filters are applied with Drupal 7

I’ve been fighting this for quite a while and tried different approaches over time, all of which somehow worked. From using Arguments with PHP validation to implementing hook_views_query_alter there are many options. Now I found out that the latest dev version of Better Exposed Filters (released 10/2013) integrated a patch that enables the desired behaviour. In your View enable Better Exposed Filters, go to BEF Settings and check Require input before results are shown. Much less painful than any other method I used before.

Write a Comment

Comment