[development] Weird behavior on #default_value

Dave Cohen drupal at dave-cohen.com
Fri Jan 25 00:58:44 UTC 2008

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 


More information about the development mailing list