« Return to Thread: How to select an item in a form' selected list.

Re: How to select an item in a form' selected list.

by Ivan Sergio Borgonovo :: Rate this Message:

Reply to Author | View in Thread

On Thu, 02 Jul 2009 11:52:10 +0200
Michel Morelli <michel@...> 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.

--
Ivan Sergio Borgonovo
http://www.webthatworks.it

--
[ Drupal support list | http://lists.drupal.org/ ]

 « Return to Thread: How to select an item in a form' selected list.