Answers.Body: <p>It looks like line 669 here:
  <a href="https://git.drupalcode.org/project/webform_civicrm/blob/7.x-4.x/includes/contact_component.inc#L669" rel="nofollow noreferrer">https://git.drupalcode.org/project/webform_civicrm/blob/7.x-4.x/includes/contact_component.inc#L669</a></p>
  
  <p>You can try changing the 12 to something else. It might work to replace it with <code>Civi::settings()-&gt;get('search_autocomplete_count')</code> and then it should use the value under Administer -> Customize Data and Screens -> Search Preferences -> Autocomplete Results. I haven't tested that.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-26T05:48:47.633Z
Answers.Text: 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.
Answers.UserDisplayName: kanchana
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-26T13:36:36.103Z
Answers.Text: Line 669 in sites/all/modules/webform_civicrm/includes/contact_component.inc
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-16T05:20:10.790Z
Answers.Text: Thanks for your advice.. It is working now.
Answers.UserDisplayName: kanchana
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-07-16T06:02:04.867Z
Answers.Text: Great!.........
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-24T13:56:41.033Z
Answers.LastActivityDate: 2019-06-24T13:56:41.033Z
Answers.UserDisplayName: Demerit
Body: <p>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.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-18T22:25:31.420Z
Comments.Text: I don't understand your comments about 'enquirer and organisation'
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-20T05:19:57.177Z
Comments.Text: i am Searching existing contact in the civicrm webform. autocomplete result limited to 12. how to overcome this.
Comments.UserDisplayName: kanchana
Tags: <webform-civicrm>
Title: How to increase the autocomplete search results in webform
ThreadText: # How to increase the autocomplete search results in webform
  
  (Asked by: username_0 on 2019-06-18)
  
  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.
  
  **Tags:** webform-civicrm
  
  > **Comments:**
  > **username_1**: I don't understand your comments about 'enquirer and organisation'  
  > **username_0**: i am Searching existing contact in the civicrm webform. autocomplete result limited to 12. how to overcome this.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-06-24. Score: 1
  
  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.
  
  > **Comments:**
  > **username_0**: 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.  
  > **username_2**: Line 669 in sites/all/modules/webform_civicrm/includes/contact_component.inc  
  > **username_0**: Thanks for your advice.. It is working now.  
  > **username_2**: Great!.........  
  
  ---
  
  