Accessing Embed Codes
To get the embed code for your form:- Navigate to your form in the Formora dashboard.
- Look for a “Share” or “Embed” button/tab, either in the Form Builder (after publishing) or in the form’s main settings/list actions.
- This will typically open an “Embed Form Dialog” where you can choose your preferred embed method and copy the corresponding code snippet.

Formora Embed Options Panel
Standard Embedding Methods
Formora offers two primary methods for standard website embedding:Script Tag (Recommended)
Script Tag (Recommended)
This is the recommended method for most websites as it offers a dynamic and responsive integration.How it Works:
You add a placeholder
<div>
element to your HTML where you want the form to appear, and include a JavaScript file from Formora. The script will then dynamically render the form into the placeholder.Embed Code Structure:
You’ll typically need two parts:- Placeholder Div:
- Script Tag (usually placed before your closing
</body>
tag):
- Responsive: Automatically adjusts to the container width.
- Dynamic Height: The script usually handles adjusting the height of the form container to fit its content, preventing scrollbars within the form.
- Potentially Better Styling Integration: May inherit some styles from your site for a more native feel (depending on Formora’s script capabilities and your site’s CSS).
data-
attributes on the placeholder div
):data-form-id="YOUR_FORM_ID"
: (Required) Your unique form ID.class="formora-embed your-custom-class"
: You can add your own custom classes for additional styling.data-no-resize="true"
: Add this attribute if you want to disable the script’s automatic height adjustment (default isfalse
, meaning auto-resize is enabled).data-api-key="YOUR_API_KEY"
: If your embedding scenario requires an API key for authentication or specific features.
Basic iFrame
Basic iFrame
An iFrame (Inline Frame) embeds your form as a separate document within a rectangular region on your webpage.How it Works:
You add an Benefits:
<iframe>
HTML tag to your page, setting its src
attribute to your form’s unique URL.Embed Code Structure:- Simple to Implement: Very straightforward HTML.
- Isolated: The form’s styles are completely isolated from your website’s styles, preventing CSS conflicts.
iframe
attributes):src="https://formora.site/f/YOUR_FORM_ID"
: (Required) The direct URL to your published Formora form.title="Your Form Title"
: Important for accessibility. Set a descriptive title.width="100%"
: Set the width (e.g.,"100%"
for full width, or a specific pixel value like"600px"
).height="600px"
: Set the height. You might need to adjust this based on your form’s content.frameborder="0"
: Removes the default border around the iframe.loading="lazy"
: Enables lazy loading, which can improve page performance.scrolling="no"
: If you want to prevent scrolling within the iframe (though this might cut off content if the form is taller than the specified height).
Advanced Embedding Options
Responsive Height Adjustment
Responsive Height Adjustment
For a better user experience, especially with dynamic form content, you can implement responsive height adjustment:Using JavaScript:Update your iframe:This will automatically adjust the iframe height based on the form’s content.
Custom Styling
Custom Styling
While the form’s core styling is managed by Formora, you can customize its appearance within your site:For Script Embed:Available Customization Attributes:
data-theme
: “light” or “dark”data-primary-color
: Any valid CSS colordata-font-family
: Any valid CSS font familydata-border-radius
: CSS border-radius valuedata-button-style
: “filled” or “outlined”
Form Events & Callbacks
Form Events & Callbacks
You can listen for form events to enhance the integration:Available Events:
form-submitted
: Triggered when the form is successfully submittedform-error
: Triggered when there’s an error during submissionform-started
: Triggered when the user starts filling out the formform-abandoned
: Triggered when the user leaves the form without submitting
Best Practices for Embedding
-
Choose the Right Method:
- Use the Script Tag method for most modern websites where you want responsive behavior and better styling integration.
- Use iFrame for simpler implementations or when you need complete style isolation.
-
Responsive Design:
- Always set the width to
100%
or use responsive units. - Implement height adjustment for dynamic content.
- Test the form on various screen sizes and devices.
- Always set the width to
-
Performance:
- Use
loading="lazy"
for iframes that are below the fold. - Consider using the Script Tag method for better performance.
- Minimize the number of embedded forms on a single page.
- Use
-
Accessibility:
- Always include a descriptive
title
attribute for iframes. - Ensure the form is keyboard-navigable.
- Test with screen readers.
- Always include a descriptive
-
Security:
- Only embed forms from trusted Formora domains.
- Keep your form IDs and API keys secure.
- Regularly update your embedding code to use the latest security features.
Troubleshooting Common Issues
Form Not Loading
Form Not Loading
Possible Causes:
- Incorrect form ID
- Network connectivity issues
- Content Security Policy (CSP) restrictions
- JavaScript errors on the parent page
- Verify the form ID in your embed code
- Check browser console for errors
- Ensure your CSP allows Formora domains
- Test in an incognito/private window
Styling Conflicts
Styling Conflicts
Possible Causes:
- CSS conflicts between your site and the form
- Missing or incorrect customization attributes
- Browser-specific styling issues
- Use the Script Tag method for better style isolation
- Review and update customization attributes
- Test in multiple browsers
Form Submission Issues
Form Submission Issues
Possible Causes:
- Network connectivity problems
- Form validation errors
- Rate limiting or plan restrictions
- Check network connectivity
- Review form validation rules
- Verify your Formora plan limits
Next Steps
Now that you understand how to embed your forms, you might want to:- Learn about Custom Domains for a more branded experience
- Explore Form Analytics to track form performance
- Set up Form Notifications to stay informed about submissions