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.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)