Closed (outdated)
Project:
Form Block
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2009 at 03:44 UTC
Updated:
8 Jul 2016 at 22:42 UTC
Jump to comment: Most recent
Comments
Comment #1
mrvee commentedI would like to know too. This module would work perfect if I could track from which node the form was submitted.
Comment #2
nedjoI can see where this would be useful. But the question would be where to put this functionality? Save the information along with the form submission? If so, save it where?
At any time, you can determine the current location in PHP with:
But I don't think adding this to forms and handling saving would fit well in formblock. It could be done as a separate module I guess.
Comment #3
Rosamunda commentedThanks for your reply, and for the code!
hmmm maybe it could be added it somewhere without much coding...
Comment #4
mikey_p commentedI'm not sure if there is a good way to add this option to the module. Perhaps you could try a combination of the Computer Field module (http://drupal.org/project/computed_field) and CCK field permissions to get a field set with custom PHP and hide it from the user. I'm not sure if that will work, but it may be worth looking into.
Comment #5
tauno commentedUsing a Computed Field seems like a good solution. Here is my code to get the node type and page title from the node the form was submitted from:
You can modify the code to get any field from the source node you want. Don't mess with $node in your computed field, it breaks the submission form.
Comment #6
mikey_p commented