By steveadamo on
I have a form that allows users to enter an event, and those events can either take place at a new location (standard location form), or they can select an existing location (called a center) using an autocomplete text field (it looks up the names of previously entered centers, which is another custom content type).
My question is this: can I have the autocomplete text field display more than just the name of the center? Reason being, there could possibly be several centers with the same name, just at different addreses. Ideally, I would want to have the autocomplete show the name of the center, as well as the street field:
So the user starts typing kid and they would see:
Kids in Action - 999 Tree Lane
Kid Zone - 123 Smith Street
Kid Zone - 456 Jones Street
Is this feasible?
Comments
clarification
just to clarify, the example i listed above shows two fields: center name, and center street...
[field_center_name] - [street]
i suppose the ideal solution would be to display a more "rich" autocomplete dropdown (showing the location name and a full address)...
this thread seems to indicate thats possible, but to be honest, i couldnt make sense of some of the suggestions...
http://drupal.org/node/125231
i've had little luck finding
i've had little luck finding any relevant content from google... ive found a few references to adding your own PHP, and creating a brand new autocomplete form: http://kutucape.com/howto-create-autocomplete-on-your-cck-field-or-other...
nothing so far that specifically talks about combining multiple fields into one display though...
Solved! for the most part...
For those that are curious, a solution was provided by Aaron Winborn on Groups.Drupal
http://groups.drupal.org/node/3471
Thanks Aaron!