you can enable webforms as a block --> select the webform content you created, tab "Webform" > "Form Settings" > "Enable as a block"
put the block inside a region, I've put mine in the footer region
CSS style the footer webform block as "display: none;"
for colorbox: in "configuration", "Media", "Colorbox" --> advanced settings, activate "Enable Colorbox inline"
add this as the html code for opening the colorbox webform link:
<a class="colorbox-inline" href="?width=310&height=460&inline=true#name-of-your-block">
You can also display the webform in popup using Colorbox Node module.
Gives the user the ability to display ANY page inside a colorbox modal without the header and footer. Those pages include:
- Node Pages
- User Pages
- Views Pages
- Webforms (requires Webform Ajax Module)
- Integration with Views
- Integration with Context
- Integration with Panels