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.
M.
On Thu, 02 Jul 2009 11:52:10 +0200 Michel Morelli michel@ziobuddalabs.it wrote:
Hi all. I have a form. In this form I have a selected list field. Two question:
- How can I set the "selected" item when I create the form?
- 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 ha scritto:
On Thu, 02 Jul 2009 11:52:10 +0200 Michel Morelli michel@ziobuddalabs.it wrote:
Hi all. I have a form. In this form I have a selected list field. Two question:
- How can I set the "selected" item when I create the form?
- 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.