Answers.Body: <p>The limit of 12 is hard-coded in the webform_civicrm module. You can find the line here</p>
  <p><a href="https://github.com/colemanw/webform_civicrm/blob/8276d951fc1ab00e3b6b989fb3f2b594d41ba3a9/includes/contact_component.inc#L669" rel="nofollow noreferrer">https://github.com/colemanw/webform_civicrm/blob/8276d951fc1ab00e3b6b989fb3f2b594d41ba3a9/includes/contact_component.inc#L669</a></p>
  <p>The most crude way to change it is to edit the source code. You will lose this change the next time the webform_civicrm module on the site is updated.</p>
  <p>If you are a developer, you can make the limit configurable and submit a PR to the Drupal project.</p>
  <p>Or add some instructions for your user, explaining the first twelve results are shown, so it is better to be specific.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-30T16:13:20.513Z
Answers.Text: That's exactly what I needed. Thanks!
Answers.UserDisplayName: Davy Ivins
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-30T14:04:24.193Z
Answers.LastActivityDate: 2021-09-30T17:17:58.143Z
Answers.LastEditDate: 2021-09-30T17:17:58.143Z
Answers.UserDisplayName: Kainuk - CiviCooP
Body: <p>I have a couple of CiviCRM integrated webforms with 'existing contact' enabled, using the autocomplete option. My problem is that the fields only return the first 12 matching records, even when there are more matches.</p>
  <p>For example our DB has 27 records with '<em>University</em>' in their names. If a user enters '<em>University</em>' the dropdown lists the first 12 records (Botswana University; Cambridge University etc). To return 'University of Zululand' users need to enter '<em>University of Z</em>', but this isn't obvious to the user</p>
  <p>Is it possible to increase the number of existing contact results returned, and if so where?</p>
  <p>Alternately has anyone found a different way around the problem e.g. would it be possible to add a &quot;click for more results&quot; at the bottom of the dropdown list?</p>
  <p>(We are using Drupal 7.82; Webform 7.x-4.24; Webform CiviCRM Integration 7.x-5.6)</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-30T12:46:58.153Z
Comments.Text: Just a wild guess but there is a setting at the bottom of this page that could do that: .../civicrm/admin/setting/search?reset=1 . But maybe it only refers to CiviCRM's "autocomplete fields".
Comments.UserDisplayName: Fabian
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-30T16:14:17.243Z
Comments.Text: Thanks Fabian - I tried that first but it didn't work. Fortunately Kainuk had the answer.
Comments.UserDisplayName: Davy Ivins
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-30T20:14:53.690Z
Comments.Text: if you were searching for 'University of Zululand' do you get a result by just searching for 'zulu'?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-01T06:52:45.207Z
Comments.Text: Hi Pete - yes 'zulu' works.
Comments.UserDisplayName: Davy Ivins
Tags: <webform-civicrm><drupal-7>
Title: Increase autocomplete dropdown limit for existing contacts? (webform)
ThreadText: # Increase autocomplete dropdown limit for existing contacts? (webform)
  
  (Asked by: username_0 on 2021-09-30)
  
  I have a couple of CiviCRM integrated webforms with 'existing contact' enabled, using the autocomplete option. My problem is that the fields only return the first 12 matching records, even when there are more matches.
  
  For example our DB has 27 records with '*University*' in their names. If a user enters '*University*' the dropdown lists the first 12 records (Botswana University; Cambridge University etc). To return 'University of Zululand' users need to enter '*University of Z*', but this isn't obvious to the user
  
  Is it possible to increase the number of existing contact results returned, and if so where?
  
  Alternately has anyone found a different way around the problem e.g. would it be possible to add a "click for more results" at the bottom of the dropdown list?
  
  (We are using Drupal 7.82; Webform 7.x-4.24; Webform CiviCRM Integration 7.x-5.6)
  
  **Tags:** webform-civicrm, drupal-7
  
  > **Comments:**
  > **username_1**: Just a wild guess but there is a setting at the bottom of this page that could do that: .../civicrm/admin/setting/search?reset=1 . But maybe it only refers to CiviCRM's "autocomplete fields".  
  > **username_0**: Thanks username_1 - I tried that first but it didn't work. Fortunately username_3 had the answer.  
  > **username_2**: if you were searching for 'University of Zululand' do you get a result by just searching for 'zulu'?  
  > **username_0**: Hi Pete - yes 'zulu' works.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2021-09-30. Score: 1 | Accepted answer
  
  The limit of 12 is hard-coded in the webform\_civicrm module. You can find the line here
  
  <https://github.com/colemanw/webform_civicrm/blob/8276d951fc1ab00e3b6b989fb3f2b594d41ba3a9/includes/contact_component.inc#L669>
  
  The most crude way to change it is to edit the source code. You will lose this change the next time the webform\_civicrm module on the site is updated.
  
  If you are a developer, you can make the limit configurable and submit a PR to the Drupal project.
  
  Or add some instructions for your user, explaining the first twelve results are shown, so it is better to be specific.
  
  > **Comments:**
  > **username_0**: That's exactly what I needed. Thanks!  
  
  ---
  
  