[support] Passing current nid to block webform

Idan Arbel idan at arbel-designs.com
Thu Dec 9 14:05:22 UTC 2010


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 at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Fred Jones
Sent: Thursday, December 09, 2010 1:06 PM
To: support at 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/ ]



More information about the support mailing list