[development] Autocomplete For A "Select" Widget

Robert Douglass r.douglass at onlinehome.de
Fri May 19 23:30:58 UTC 2006

Rob, you would be able to use my activeforms module to make a two-widget 
autocomplete form. I imagine it would be a text field and a select and 
they keep each other synchronized. You can read about my module on the 
groups site. It lets you write server-side code to attach event 
listeners to client-side DOM objects.




Rob Thorne wrote:
> I'm looking at using autocomplete for contacts stored in CiviCRM.  
> Implementing basic autocomplete using the standard Drupal hook was 
> pretty simple: just search the CRM store for a contacts "display name" 
> via the autocomplete handler.
> But there's a problem with how the standard handler works:  display 
> names are not unique.  What I probably *need* to do is this:  use the 
> autocomplete field to populate a "select" widget that uses the display 
> name as the label, and the unique numerical contact_id as the key.
> Before I start looking into implementing this myself:  have any of you 
> implemented this kind of widget?  Or do you have advice how best to do 
> this?
> Thanks,
> Rob
> Rob Thorne
> Torenware Networks
> http://www.torenware.com

More information about the development mailing list