Embedding Forms
Learn how to embed forms on your website pages and external websites.
Using Shortcodes
The primary method for embedding forms in pages:
[bb-form-builder code="your-form-code"][/bb-form-builder]With Style Override
[bb-form-builder code="your-form-code" style="modern"][/bb-form-builder]Available styles: default, modern, minimal, bold, glass
Popup Forms
For popup display mode:
- Edit the form
- Set Display Mode to "Popup"
- Configure popup settings:
- Trigger type
- Popup size
- Title
- Use the shortcode - it will display as a button or auto-trigger
Embedding on External Websites
For forms with "Allow Embed" enabled:
Using Direct URL
https://yoursite.com/forms/{hash}/embedUsing User-Friendly URL
https://yoursite.com/form/{code}Using JavaScript Embed
html
<script src="https://yoursite.com/vendor/core/plugins/bb-form-builder/js/embed.js"></script>
<div data-bb-form-builder="your-form-code"></div>Embed Options in Admin
After creating a form, view embed options:
- Open the form editor
- Scroll to the Embed Code section
- Copy the shortcode, URL, or JavaScript snippet
Popup Forms Advanced Configuration
Button Click Trigger
Display form when a button is clicked:
- Set Popup Trigger to "Button Click"
- Configure Button Text (e.g., "Contact Us")
- The shortcode will render a button that opens the popup
Time Delay Trigger
Show popup after a time delay:
- Set Popup Trigger to "Time Delay"
- Configure Delay in seconds
- Popup appears automatically after the delay
Scroll Percentage Trigger
Show popup after scrolling:
- Set Popup Trigger to "Scroll Percentage"
- Configure Scroll Percentage (e.g., 50%)
- Popup appears when user scrolls to that point
Exit Intent Trigger
Show popup when user is about to leave:
- Set Popup Trigger to "Exit Intent"
- Popup appears when mouse moves toward browser controls
Popup Appearance
- Popup Title: Optional header text
- Popup Size: Small, Medium, Large, or Extra Large
- Close on Overlay Click: Allow closing by clicking outside
- Show Close Button: Display X button in corner
