[development] Active select(?)

David Cohen drupal at dave-cohen.com
Mon Sep 22 01:09:01 UTC 2008


Amon,

Check out the form_set_value() function.  It's intended (I think) to be
called from your field's validate function.  There you can convert a
list of names into ids.
Also look into your field's _value() callback.  There, you can convert a
default value (list of ids) into a string.

-Dave

On Thu, 18 Sep 2008 10:10:22 +0200, "Ámon Tamás" <amont at 5net.hu> said:
> Hello,
> 
> I have a table with 10000+ record (id, name). I like to make a field
> like autocomplete but I like to get back the id not the name. Now I make 
> this:
> 


More information about the development mailing list