Closed (duplicate)
Project:
Webform
Version:
6.x-3.16
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2012 at 19:33 UTC
Updated:
27 Nov 2012 at 12:51 UTC
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
Comment #1
quicksketchLet's keep one conversation for this topic over in #1470748: Getting node tokens into Webform block.
Comment #2
ambientdrup commentedYes but I would like to do this in Drupal 6. I believe the other issue is for Drupal 7.
-Trevor
Comment #3
jasom commentedThis small module worked for me https://drupal.org/node/1470748#comment-5883496