I want that a view shows its result only when users enter a value in the exposed form fields. Is there a way I can get this done?
I am using AJAX, and the view is displayed as block. Most of the options I tried don't work because of this.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityFor each of your fields, in your view, you have the option Hide if empty
. Select it to not display anything for the field if it is empty. Note that the field label may still be displayed. Check style or row style settings to hide labels for empty fields.
Because you run views for drupal7 there is already a build in solution.
Therefore change the "Exposed form style:" to "Input required" That's all you need.
Yeah pluggable systems!