CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Drupal Webform Integration »
  • autocomplete limited to 12 on CiviCRM webform
Pages: [1]

Author Topic: autocomplete limited to 12 on CiviCRM webform  (Read 411 times)

kennedy

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 5
  • CiviCRM version: 4.5.5
  • CMS version: Drupal
  • PHP version: 5.3.10
autocomplete limited to 12 on CiviCRM webform
December 10, 2014, 07:37:12 am
i have a webform and i have enabled CiviCRM processing for two contact types: Contact 1 is an individual and Contact 2 is an organization (relationship to Contact 1) and Contact 2 is autocomplete field

Problem.
On the webform, Contact 2 limits search to only 12 organizations,for example, if i start typing 'aa', i get only 12 contacts listed and the create prompt to add new contact (organizational contact) doesn't show up either.  Is there any way to increase this limit? In CiviCRM the Current employer field (Contact 2) autocomplete field is not limited.

Any help will be much appreciated.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: autocomplete limited to 12 on CiviCRM webform
December 10, 2014, 07:47:29 am
Quote
In CiviCRM the Current employer field (Contact 2) autocomplete field is not limited.
I think you're referring to the new EntityRef widget in 4.5 which has infinite scrolling of results. It's really nice, I agree, but webform_civicrm uses an older widget (tokeninput instead of select2) that doesn't support infinite results.
The number 12 isn't user-configurable, but you could hack the module's code to up that amount (just search the code for the number 12).
Would be great to get some community support/funding to upgrade webform_civicrm to use select2.
Try asking your question on the new CiviCRM help site.

kennedy

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 5
  • CiviCRM version: 4.5.5
  • CMS version: Drupal
  • PHP version: 5.3.10
Re: autocomplete limited to 12 on CiviCRM webform
December 10, 2014, 08:13:01 am
Thanks Coleman, the hack works. I will like to chip in something small  :) for this improvement when i return from holidays in January

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules »
  • Drupal Webform Integration »
  • autocomplete limited to 12 on CiviCRM webform

This forum was archived on 2017-11-26.