Cris
Cris

Reputation: 12204

How to avoid a Drupal7 view to show the results at startup?

I have a Drupal7 View with 4 exposed filters. It runs fine but i would like the results to be shown only when the user clicks the submit button and not when the view is loaded? How can i avoid this?

Upvotes: 2

Views: 155

Answers (2)

Diana
Diana

Reputation: 274

This behavior was recently included into views 3. You can select: Exposed Form Style: Input Required.

Upvotes: 2

danielson317
danielson317

Reputation: 3288

Make on of the filters required and don't set a default value. The view will not return any results until the user selects something in that field.

Upvotes: 0

Related Questions