See how forms look when embedded on external websites
The simplest way to embed a form. Just copy and paste this code into your HTML:
<iframe
src="https://bb-form-builder.botble.com/form/contact-form"
width="100%"
height="500"
frameborder="0"
></iframe>
For better responsiveness and auto-height adjustment:
<div id="my-form"></div>
<script src="https://bb-form-builder.botble.com/vendor/core/plugins/bb-form-builder/js/embed.js"></script>
<script>
BbFormBuilder.embed({
container: '#my-form',
formCode: 'contact-form'
});
</script>
The JavaScript embed supports these options:
| Option | Type | Description |
|---|---|---|
container |
string | CSS selector for the container element |
formCode |
string | The unique code of your form |
baseUrl |
string | Optional. Override the base URL |
height |
string | Optional. Fixed height (e.g., "500px") |
It automatically adjusts height based on form content
Forms can be embedded on any domain
Forms use their own CSS and won't conflict with your site
Form submissions and validation are fully functional
Use these form codes in your embed:
contact-form
newsletter
customer-feedback
job-application
event-registration