25 Jan
2008
25 Jan
'08
2:19 a.m.
i guess "in the first step the query returns an empty result and default value (and value) and description are set empty(they are not visible yet). in the second step, the query returns a non-empty result and only description is set, value is not set since it was set in the first step." On Jan 25, 2008 2:58 AM, Dave Cohen <drupal@dave-cohen.com> wrote:
You explained that you are using multistep. And perhaps you're problem appears on the second or subsequent form. (I'm guessing).
#default_value is the default, and it is replaced by values from the post. So try a print_r($_REQUEST) and see if name or edit[name] is being passed in.
Also try a print_r($form), after your alter to see what's really in #default_value.
-Dave