Set default value on nodereference, CCK fields or other form fields

Tried to use form_alter on CCK and even form_after_build but no success? Try out Prepopulate module http://drupal.org/project/prepopulate.

Knowledge keywords: