How to change the module code to increase the autocomplete search results in webform. we have two contact one is enquirer and another is organisation its result 12 on autocomplete.
1 Answer
It looks like line 669 here: https://git.drupalcode.org/project/webform_civicrm/blob/7.x-4.x/includes/contact_component.inc#L669
You can try changing the 12 to something else. It might work to replace it with Civi::settings()->get('search_autocomplete_count')
and then it should use the value under Administer -> Customize Data and Screens -> Search Preferences -> Autocomplete Results. I haven't tested that.
-
Thanks demerit. I have changed search Preferences -> Autocomplete Results to 20 but it does not reflects. can you please share path of drupal component file to change.– kanchanaCommented Jun 26, 2019 at 5:48
-
Line 669 in sites/all/modules/webform_civicrm/includes/contact_component.inc– DemeritCommented Jun 26, 2019 at 13:36
-
-