I've selected a "Add no results behavior" option for my Views page which consists of a search form. The problem with the "Add no results behavior" feature is that it displays by default, even before I've attempted to do a search. How do I change this so that it only displays AFTER the user has attempted to do a search (for which there are no results)?
1 Answer
Assuming you're using Views 3, on the Views config page under Exposed form
, change Exposed form style
from Basic
to Input required
. Optionally change the other related settings on this page. Apply the settings and save the View and it should be ok.
-
Thank you @enzipher Is there by any chance a way to make the export buttons (csv, xls) to only display when there ARE search results? At the moment they display whether or not there are search results...– kine456Commented Feb 12, 2013 at 22:42
-
Glad to help. I am afraid I don't know what "Export buttons" your are referring to.– dxcCommented Feb 12, 2013 at 23:46
-
Sorry, what I meant was the Views Data Export module. @enzipher– kine456Commented Feb 12, 2013 at 23:49
-
@kine456 I don't know where those shows up, so I don't think I can help you with that. I would suggest you ask another question for that.– dxcCommented Feb 13, 2013 at 0:18