Thanks, but I can't seem to use this in the webform default value field, it doesn't accept any php.
Idan
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Fred Jones Sent: Thursday, December 09, 2010 1:06 PM To: support@drupal.org Subject: Re: [support] Passing current nid to block webform
I have a webform displayed on a node page as a block.
This is a property listing site, so I have the property page, and in it there's a block with a contact us for more info form.
I'd like to be able to pass the current node title to the webform as a hidden field. I'm not sure how to do this.
$node = node_load(arg(1));
HTH -- [ Drupal support list | http://lists.drupal.org/ ]