[development] Weird behavior on #default_value

ufuk bayburt ufukbay at gmail.com
Fri Jan 25 01:19:25 UTC 2008


 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 at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20080125/58fa8e8f/attachment.htm 


More information about the development mailing list