Forum: Ruby on Rails auto_complete galore

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
mich (Guest)
on 2006-04-28 18:28
List,

I'm using auto_complete with textfield, called CompanyCode. so when you
type fx '0403' it will show a list with matching company codes, and the
respective company name - like so:

040333 - Some company inc
040322 - Another company
040323 - whatever Corp.

Anyway, once a user selects one of the entries from the list - the whole
text (name and code) is put into the textfield. However, I would like to
put the full code into the CompanyCode field, and the name into another
field, fx CompanyName.

Any ideas ?

Thanks.

/mich
tdc (Guest)
on 2007-04-25 14:03
I am another lost newbie stalled at the same issue. Must be an approach
I am taking.

thanks in advance for any pointers
This topic is locked and can not be replied to.