7

I found it quite hard to replace the customization done with hook_civicrm_contactListQuery (CiviCRM <= 4.4) with the new hook_civicrm_apiWrappers (CiviCRM >= 4.5). So I am sharing my results here. My goal is to have a way to search quickly either by contact name, or by a custom field that stores a member identifier (different from internal identifier ...


4

For customizing the list of options, see this question. To override the quicksearch behavior, you could try hook_civicrm_apiWrappers to modify the output of the contact.getquick api.


4

This is by design - see https://issues.civicrm.org/jira/browse/CRM-15653 for an explanation and the reasoning. Overall, I think this change was the right one - I worked with someone at a California-based public health organization who could never look up "California Department of Public Health", because basically all the organizations in their database had ...


3

Have also experienced this after upgrading to 5.8.0. Bug has been reported and hopefully should have a fix very soon – https://lab.civicrm.org/dev/core/issues/593


3

This is job for the Search Builder that you can find in the Search menu Select Individual Select Individual Prefix Complete with = and the desired title. When the results are shown you can create a Smart Group for this search.


2

Based on @samuelsov answer and samples I've developed an extension that could customize the quicksearch fields More info here: https://civicrm.org/extensions/quicksearch


2

The base code for it is located at navigation.js.tpl where all the menus have been listed with their search inputs. Adding source as a search field seems to just add another line with a value as source. Note: Changing core file may not be recommended as you may lose them after upgradation.


2

It sounds like you have a problem on your install/instance, perhaps a host issue. If you are evaluating CiviCRM, you may first want to try the Joomla Demo and/or create a sandbox to test on. Once you have done the evaluation you can look in to why your instance is giving you problems.


2

This is a regression that has been identified in 4.7.7 - thanks for spotting it. Progress on the issue, and a patch to resolve it, will be posted on the issue tracker here: https://issues.civicrm.org/jira/browse/CRM-18510


2

Thanks Joe for the comment. In the search settings, all of the checkboxes for "Autocomplete Contact Search" were checked. We disabled all but "Contact" (which is set by default) and "Email" and now it's working.


2

At Administer - Customize - Display Preferences, near the bottom there is "Individual Sort Name Format". If you change it to {contact.last_name}{, contact.individual_suffix}{, }{contact.first_name} then NEW and UPDATED contacts will start to appear in quicksearch as desired. The only thing is that existing contacts who haven't been re-saved will still appear ...


1

There has been discussion going on to implement this in CiviCRM core code, developed a small extension to do that for time being until its been implemented in core.


1

This was a hosting issue. ModSecurity rules had to be edited. Not a 4.6 update issue at all.


1

I've developed an extension that could customize the quicksearch fields More info here: https://civicrm.org/extensions/quicksearch


1

I originally wrote it that way to avoid confusion. If you want to pull up contact id 20 you'll be overwhelmed with irrelevant results (201, 202, 203, 120, 220, 320, and so on). You'll get so many results that the one you actually wanted might not even be in the list! That said, if someone had time and/or money for the project, I'm sure there could be ...


1

You can add easily add predefined fields into the autocomplete results by selecting fields under "Autocomplete Contact Search" under "Settings - Search Preferences". Adding the Birth Date will not be as easy. Technically you could add an additional option group value to the option group contact_autocomplete_options, but that will be pretty much ...


1

A very speedy google on 'drupal autocomplete block' turned up many modules that will help you. Plug in the results of a civicrm api call, remembering to set count=0 to sidestep the 25 result limit. If you get stuck on a specific part then please reply!


1

Actually, it turns out that this doesn't help our client. I wasn't aware at the time but he uses the advanced search and needs to select a "Display As" selection, Activities for example. He tried to find a way to still use the search builder but wasn't successful. I ended up creating custom php changes to revert CRM-15653. This functionality was very ...


Only top voted, non community-wiki answers of a minimum length are eligible