1

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 1

4

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.

4
  • 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...
    – kine456
    Commented Feb 12, 2013 at 22:42
  • Glad to help. I am afraid I don't know what "Export buttons" your are referring to.
    – dxc
    Commented Feb 12, 2013 at 23:46
  • Sorry, what I meant was the Views Data Export module. @enzipher
    – kine456
    Commented 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.
    – dxc
    Commented Feb 13, 2013 at 0:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.