Answers.Body: <p>Save the result of the custom search as a smart group, then the user can just search using that smart group name.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-18T20:03:55.367Z
Answers.Text: That seems like a good method to use. It's not the ideal solution as it still shows the Search Criteria section (with nothing but two submit buttons since there is no input), but it at least immediately shows the results. Thanks!
Answers.UserDisplayName: Paul B
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-17T12:33:14.163Z
Answers.LastActivityDate: 2020-05-17T12:33:14.163Z
Answers.UserDisplayName: Andy Clark
Answers.Body: <p>Create a menu item for your custom search and add <code>&amp;force=1</code> to its URL.</p>
  
  <p>Eg: <a href="http://example.org/civicrm/contact/search/custom?csid=1&amp;reset=1&amp;force=1" rel="nofollow noreferrer">http://example.org/civicrm/contact/search/custom?csid=1&amp;reset=1&amp;force=1</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-21T11:49:33.197Z
Answers.LastActivityDate: 2020-05-21T11:49:33.197Z
Answers.UserDisplayName: Aidan
Body: <p>I'd like to create a custom search that goes directly to the results page, without asking the user for input parameters (the WHERE clause is hard-coded, no need for inputs). How can I do this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-05-17T03:40:58.193Z
Comments.Text: This seems like a similar question: https://civicrm.stackexchange.com/questions/34489/how-can-i-make-a-custom-search-do-an-initial-search?rq=1
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-05-18T20:02:58.053Z
Comments.Text: @Demerit, the top voted answer to that question - the method used - did not work for me. But it seems the idea to use a smart group may be a good option.
Comments.UserDisplayName: Paul B
Tags: <custom-search>
Title: Custom Search with No Input Parameters just Results
ThreadText: # Custom Search with No Input Parameters just Results
  
  (Asked by: username_0 on 2020-05-16)
  
  I'd like to create a custom search that goes directly to the results page, without asking the user for input parameters (the WHERE clause is hard-coded, no need for inputs). How can I do this?
  
  **Tags:** custom-search
  
  > **Comments:**
  > **username_1**: This seems like a similar question: https://civicrm.stackexchange.com/questions/34489/how-can-i-make-a-custom-search-do-an-initial-search?rq=1  
  > **username_0**: @username_1, the top voted answer to that question - the method used - did not work for me. But it seems the idea to use a smart group may be a good option.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2020-05-17. Score: 2
  
  Save the result of the custom search as a smart group, then the user can just search using that smart group name.
  
  > **Comments:**
  > **username_0**: That seems like a good method to use. It's not the ideal solution as it still shows the Search Criteria section (with nothing but two submit buttons since there is no input), but it at least immediately shows the results. Thanks!  
  
  ---
  
  ### Answer by username_3 on 2020-05-21. Score: 0
  
  Create a menu item for your custom search and add `&force=1` to its URL.
  
  Eg: <http://example.org/civicrm/contact/search/custom?csid=1&reset=1&force=1>
  
  
  ---
  
  