Last updated April 17, 2015. Created on February 20, 2012.
Edited by DanChadwick, margyly, peterx, Balbo. Log in to edit this page.

Webforms can be used in a block. (Webform 7.x-4.x)

  1. Create your webform in a node.
  2. Edit the node.
  3. Select the Webform tab.
  4. Select the Forms settings tab.
  5. Select Advanced settings.
  6. Check [ ] Available as block.
  7. Save configuration.

Your webform is now available both as a content node and a block. You can hide the node or use it however you want. Look in the blocks list for the block. If you named your webform Example form, the block will be named Webform: Example form.

The block gives you the following choices.

View mode

  • Form only
  • Full node
  • Teaser
  • ...

Form only is typically used to avoid duplicating the node's title (in addition to the block's title) and any other node fields which are set to display in the selected view mode.

Multi-page handling

  • Display all pages inside block
  • Redirect to the node page after the first page

Confirmation message

  • Display as configured in the webform
  • Display the confirmation page in the block on the same page (no redirect)

When the confirmation message is configured to be shown in the block and the webform's redirect is set to the confirmation page, the block is replaced with the confirmation page. Otherwise, the confirmation message is added to the beginning of the block, ahead of the form, styled as if it were a standard Drupal status message.

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.