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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Autocomplete field options
Pages: [1]

Author Topic: Autocomplete field options  (Read 1496 times)

Steve@ASU

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.51a-community-log
  • PHP version: 5.2.17
Autocomplete field options
October 24, 2011, 06:17:37 am
I'm new to CiviCRM, so if this feature exists maybe someone could point me in the right direction.

Is there a way to extend the Autocomplete custom field option so it checks if a word (or partial word) is contained with a given answer? Right now it seems to just check the first word.

For example: if I have a list of AZ universities, like:

Arizona State University
Northern Arizona University
University of Arizona

Currently if I enter "Arizona," only "Arizona State University" appears as a selection. Enter "University" only "University of Arizona" shows up.

But if the AC field was programmed to show any value that contains a word, then a search for "Arizona" would show all three.

Not a big deal in my small list example. But I want to create value lists with hundreds of high schools and colleges that the user fills in during account creation. A kid might not know his high school is called "Carl J. Hayden High School" and just look for "Hayden."

Thanks,
Steve

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Autocomplete field options
October 24, 2011, 07:24:17 am
Can't recall where but I think there is an option (about auto wildchar or something).

Anyway, the alternative would be worse, if you try to get the University of Arizona, you'd get the autocomplete containing all the universities and all the arizona social club and arizona this and that arizona...

The "proper" solution would be to use a real search engine for it. Got a prototype based on  sphinx (works great) and there is one based on solr I think.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Steve@ASU

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.51a-community-log
  • PHP version: 5.2.17
Re: Autocomplete field options
October 25, 2011, 01:04:13 pm
I'm not talking about search fields. I'm talking about a Custom data field with "Autocomplete select" feature. I don't think search fields options connect to data field options?

What I'm looking for are extended options like are offered with Drupal's "Autocomplete Widgets for Text and Number Fields" (http://drupal.org/project/autocomplete_widgets).

Steve
« Last Edit: October 26, 2011, 12:09:05 pm by Steve@ASU »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Autocomplete field options

This forum was archived on 2017-11-26.