Answers.Body: <p>In search preferences /civicrm/admin/setting/search?reset=1: Automatic Wildcard should be "yes" to search for contacts that contain the search term in any part of the name.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T20:44:00.633Z
Answers.Text: It's a working solution but not a perfect one as it also influences the normal contact search form the civicrm admins use and also the general performance. Maybe it should be possible to inject a hidden % via code in the search which will trigger the wildcard behaviour or to add a parameter to the civicrm search api that can set wildcard behaviour.
Answers.UserDisplayName: Hans Rossel
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-14T18:58:23.667Z
Answers.LastActivityDate: 2015-06-15T20:34:03.673Z
Answers.LastEditDate: 2015-06-15T20:34:03.673Z
Answers.UserDisplayName: Kboy
Body: <p>When you add an existing contact field to Webform Civicrm the autocomplete searches for contacts that start with the search term. How do you change the autocomplete function to search for contacts that contain the search term in any part of the name, not just the beginning?</p>
  
Tags: <webform-civicrm>
Title: How to make the contact autocomplete in Webform Civicrm to search for contacts that contain a search term, not start with
ThreadText: # How to make the contact autocomplete in Webform Civicrm to search for contacts that contain a search term, not start with
  
  (Asked by: username_0 on 2015-06-08)
  
  When you add an existing contact field to Webform Civicrm the autocomplete searches for contacts that start with the search term. How do you change the autocomplete function to search for contacts that contain the search term in any part of the name, not just the beginning?
  
  **Tags:** webform-civicrm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-06-14. Score: 4 | Accepted answer
  
  In search preferences /civicrm/admin/setting/search?reset=1: Automatic Wildcard should be "yes" to search for contacts that contain the search term in any part of the name.
  
  > **Comments:**
  > **username_0**: It's a working solution but not a perfect one as it also influences the normal contact search form the civicrm admins use and also the general performance. Maybe it should be possible to inject a hidden % via code in the search which will trigger the wildcard behaviour or to add a parameter to the civicrm search api that can set wildcard behaviour.  
  
  ---
  
  