Yes, I use that return ($form_values) into my query:
$result = db_query('select name from {reports} where rid=%d',
$form_values['saved']);
$report = db_fetch_array($result);
the $report always return my designed value from reports.name, but that
shows only in #description or #value, never #default_value.
Even if I insert something in $report array, as mentioned before. Only
the inserted apear on #value, my table content shows only in
#description.
big mistery!
ufuk bayburt escreveu:
Does your form builder function get any parameter? Do you use
any of them in your query? Are you sure that they have the same values
on every build?
what should be the result from default_value and description? The
same? No, look:
Array ( [name] => test something )
'something' shows on both outputs, but 'test' only in #descrtption. If
is the SAME source ($report['name']), where is 'test' ??? I'm geting
crazy with that :P
I can provide a demo site if its a good idea.
Feijó
Tao Starbow escreveu:
Probably means your #value is getting set
through some other mechanism. FormAPI can be pretty subtle at times.
I seem to remember having a similar problem when I was playing around
with #multistep, but I don't remember how I fixed it.