Answers.Body: <p>Note this is purely a Drupal question at this point. Anyway, yes requiring the field can suffice. You can also use the Exposed Form to make a search block that has additional settings such as "Input required" (under the Advanced bit of Views on right)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-25T05:24:43.550Z
Answers.Text: Thanks.  Yea, as I was writing the question I thought this might really be a drupal qustion;  although, my searches, such as they were, didn't find an answer.
Answers.UserDisplayName: Paul-Tahoe
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-25T03:37:13.400Z
Answers.LastActivityDate: 2015-09-25T03:37:13.400Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>As far as your exposed filter, I use Better Exposed Filters module that has an option "Require input before results are shown." We use that all of the time. </p>
  
  <p>Great module that really lets you customize the exposed filters.</p>
  
  <p>As for the Webform, you can set the contact to Autocomplete and filter by the appropriate group.</p>
  
  <p><strong>Update</strong>
  I think I misunderstood about your Webform reference.</p>
  
  <p>If what you are trying to accomplish is an exposed filter that autocopmletes names for View search results, use the Better Exposed Filters module, select "Autosubmit" and "Require input before results are shown."  After that, in the advanced section of the View turn on Ajax. That should essentially give you an autocomplete list of contacts.</p>
  
  <p>Also instead of the first and last name fields, I would remove those and use either the display name or sort name fields depending on how you want users to enter names.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-25T10:30:29.977Z
Answers.LastActivityDate: 2015-09-26T17:29:04.817Z
Answers.LastEditDate: 2015-09-26T17:29:04.817Z
Answers.UserDisplayName: pmoz
Body: <p>I've created a view to query up existing contact and I was able to create a link to a webform with a specific id.</p>
  
  <p>I added a combined filter for first name, last name and email.  Before it filters you get everyone in the db.  What's the best way to not get anyone until you hit search?  (I found that making the search box mandatory did that, but is that a good way?)</p>
  
  <p>I don't suppose there's an easy way to get the nice autocomplete box that you get for webforms existing contact is there?</p>
  
  <p>Any gotchas I should watch out for?</p>
  
Tags: <webform-civicrm><drupal-views>
Title: Any best practices/tips for creating a query view against contacts to used with webforms?
ThreadText: # Any best practices/tips for creating a query view against contacts to used with webforms?
  
  (Asked by: username_0 on 2015-09-25)
  
  I've created a view to query up existing contact and I was able to create a link to a webform with a specific id.
  
  I added a combined filter for first name, last name and email. Before it filters you get everyone in the db. What's the best way to not get anyone until you hit search? (I found that making the search box mandatory did that, but is that a good way?)
  
  I don't suppose there's an easy way to get the nice autocomplete box that you get for webforms existing contact is there?
  
  Any gotchas I should watch out for?
  
  **Tags:** webform-civicrm, drupal-views
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-09-25. Score: 3
  
  Note this is purely a Drupal question at this point. Anyway, yes requiring the field can suffice. You can also use the Exposed Form to make a search block that has additional settings such as "Input required" (under the Advanced bit of Views on right)
  
  > **Comments:**
  > **username_0**: Thanks.  Yea, as I was writing the question I thought this might really be a drupal qustion;  although, my searches, such as they were, didn't find an answer.  
  
  ---
  
  ### Answer by username_2 on 2015-09-25. Score: 2
  
  As far as your exposed filter, I use Better Exposed Filters module that has an option "Require input before results are shown." We use that all of the time.
  
  Great module that really lets you customize the exposed filters.
  
  As for the Webform, you can set the contact to Autocomplete and filter by the appropriate group.
  
  **Update**
  I think I misunderstood about your Webform reference.
  
  If what you are trying to accomplish is an exposed filter that autocopmletes names for View search results, use the Better Exposed Filters module, select "Autosubmit" and "Require input before results are shown." After that, in the advanced section of the View turn on Ajax. That should essentially give you an autocomplete list of contacts.
  
  Also instead of the first and last name fields, I would remove those and use either the display name or sort name fields depending on how you want users to enter names.
  
  
  ---
  
  