[drupal 7] How to add webform inside a block?

| | 1 min read

Whenever you need to create a contact/feedback form in drupal, everyone will be thinking of using "Webform" module. Using webforms to do so, is a good choice. Normally, the forms created using webform module are displayed as pages. There may be certain situations, where you need to display these as "blocks". If you need to know how to display webform as a block, read on.

If you have a webform with you, that you have already created, by adding the required fields, then follow the below steps:

  • Click on the edit tab of the webform.(Provided, you have the edit permisssion).
  • Click on the "webform" tab of the "webform node", that you have created.
  • Click on the form settings tab
  • Scroll down and click on "Advanced settings"
  • Check the option "Availabe as block".
  • Save.

Go to admin/structure/block, assign the block to the required region and see the magic.!! As simple as it is, right?. Enjoy.