5

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?

1 Answer 1

4

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.

1
  • 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. Jun 15, 2015 at 20:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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