[support] More effective use of auto-complete in Profile

Gordon Heydon gordon at heydon.com.au
Wed Mar 7 12:29:06 UTC 2007


Hi,

Neil: esl-lounge.com wrote:
> Thanks for your response.
> 
> Unfortunately, I have a selection of 23,000 towns so that is not practical. 
> Isn't there a way of getting the autocomplete to "look" in a different table 
> for values?

Yes this is possible by altering the form using the hook_form_alter() 
and tell it use a different path to find the autocomplete.

Gordon.

> N
> 
> ----- Original Message ----- 
> From: "sime" <info at urbits.com>
> To: <support at drupal.org>
> Sent: Wednesday, March 07, 2007 12:45 PM
> Subject: Re: [support] More effective use of auto-complete in Profile
> 
> 
>> The best you can do with profile module is to add "selection" field type
>> and input your list right there.
>>
>> HTH
>> .s
>>
>>
>> Neil: esl-lounge.com wrote:
>>
>>> Is there a way of populating the profile_values table in the drupal DB
>>> before opening your site to the public?
>>>
>>> I want the auto-complete to work and provide cities which I have
>>> already put into the database. At the moment, they only include cities
>>> that existing members have already entered.
>>>
>>> Also, is there a way of providing extra information in the dropdown
>>> like you get on answers.com? If someone types "San Fr" I would like
>>> something similar to "San Francisco (California)" to appear. Is that
>>> possible?
>>>
>>> Neil
>>>
>>> ------------------------------------------------------------------------
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG Free Edition.
>>> Version: 7.5.446 / Virus Database: 268.18.7/712 - Release Date: 3/6/2007 
>>> 3:42 PM
>>>
>>>
>> -- 
>> [ Drupal support list | http://lists.drupal.org/ ]
>>
> 


More information about the support mailing list