[support] How to select an item in a form' selected list.
Michel Morelli
michel at ziobuddalabs.it
Thu Jul 2 10:30:46 UTC 2009
Ivan Sergio Borgonovo ha scritto:
> On Thu, 02 Jul 2009 11:52:10 +0200
> Michel Morelli <michel at ziobuddalabs.it> wrote:
>
>
>> Hi all. I have a form. In this form I have a selected list field.
>> Two question:
>>
>> 1) How can I set the "selected" item when I create the form?
>> 2) How can I set or reset the "selected" item via a form alter
>> function ? I think that this solution is equal to the first.
>>
>
> Setting #default_value.
>
Argh...
Grrrr...
Ufff.
Why I don't think that the easy way is always the better way ? "keep it
simple, stupid".... grrrrrr
Tnx.
--
Michel 'ZioBudda' Morelli michel at ziobuddalabs.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ziodrupal.net MSN: michel at ziobuddalabs.it
JABBER: michel at ziobuddalabs.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090702/d763955f/attachment.htm>
More information about the support
mailing list