0

I am trying to create a single webform that I can expose as a block and re-use on multiple 'profile' nodes. These nodes will use Panels and Panel/Panes to display content.

Problem: I need to pass email address(s) stored on the "parent"('profile') node (cck fields perhaps) to the "child" webform so that the form is sent to the address(s).

I've tried following a few articles that said to create a custom module to implement hook_form_alter. I haven't been able to get it to work. I'm a bit of a noob at the whole programming side of Drupal so any help would be appreciated.

2 Answers 2

1

You can create a view for this web form node, and display it as block. This will work.

0

In D7, you could go to "/node/%nid/webform/configure". Here under the "Advanced Settings" Tab, you could check the box "Available as block ". Your web-form will be available as a block now.

To pass the email address to the webform block, you could try using the Webform Token along with the Token Module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.