I have a Webform that I'm embedding into another node as a block. This is via these instructions:

http://drupal.org/node/1447436

Now I'd like to add a hidden field to the Webform so that when it's submitted the node that it's embedded on will show as the value of that hidden field in the submission. This is helpful information since we can see the node that the form has been submitted from.

I have added a hidden field(s) that have the following tokens as the values:

%title
%get[q]

So this ends up showing us the title of the Webform node and the webform path.

Does anyone have a suggestion on how to get the value of the node that the webform is embedded in? Not the webform node itself.

-Trevor

Comments

quicksketch’s picture

Status: Active » Closed (duplicate)

Let's keep one conversation for this topic over in #1470748: Getting node tokens into Webform block.

ambientdrup’s picture

Yes but I would like to do this in Drupal 6. I believe the other issue is for Drupal 7.

-Trevor

jasom’s picture

This small module worked for me https://drupal.org/node/1470748#comment-5883496