Frameworks and builders
Framer
Add a Lazyform contact form to a Framer site with an Embed component and a pasted HTML form.
Framer's built-in form sends submissions its own way, and you can't set a standard form action on it. The reliable way to use Lazyform in Framer is an Embed component with a small HTML form inside.
Before you start
Get an access key: type your email on the homepage for an instant key, or sign in and create a form. You'll paste it where you see YOUR_ACCESS_KEY (keys start with lf_).
Add the form
- In Framer, insert an Embed component on your page (search the insert menu for "Embed").
- Set its type to HTML (not URL).
- Paste the code below and replace
YOUR_ACCESS_KEY. - Resize the embed so the whole form is visible.
- Publish and send a test message from the live site.
<style>
#lazyform { display: grid; gap: 12px; font-family: inherit; }
#lazyform input, #lazyform textarea { padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
#lazyform textarea { min-height: 120px; }
#lazyform button { padding: 12px; border: 0; border-radius: 8px; background: #111; color: #fff; font: inherit; cursor: pointer; }
#lazyform button:disabled { opacity: 0.6; }
</style>
<form id="lazyform" action="https://lazyform-api.xvelopers.com/submit" method="POST">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<input type="text" name="name" placeholder="Name" required>
<input type="email" name="email" placeholder="Email" required>
<textarea name="message" placeholder="Message" required></textarea>
<input type="checkbox" name="botcheck" class="hidden" style="display:none">
<button type="submit">Send</button>
<p id="lazyform-status" role="status"></p>
</form>
<script>
const lf = document.getElementById('lazyform');
const button = lf.querySelector('button');
const status = document.getElementById('lazyform-status');
lf.addEventListener('submit', async (e) => {
e.preventDefault();
button.disabled = true;
status.textContent = 'Sending...';
try {
const res = await fetch(lf.action, {
method: 'POST',
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
body: JSON.stringify(Object.fromEntries(new FormData(lf))),
});
const result = await res.json();
status.textContent = result.success
? 'Thanks! Your message has been sent.'
: result.error?.message || 'Something went wrong.';
if (result.success) lf.reset();
} catch {
status.textContent = 'Network error. Please try again.';
} finally {
button.disabled = false;
}
});
</script>The script keeps visitors on the page and shows the result under the button. Change the colors in the <style> block to match your site.
Framer may render HTML embeds inside an isolated frame. That's why the form carries its own styles and shows its message inline instead of redirecting. Framer's UI labels change over time; if you can't find "Embed", look for an HTML or code embed in the insert menu.
Tips
- Custom code components. If you build in Framer with code components, you can use the React guide instead.
- Allowed websites. If you turn on allowed websites, submit a test message and check that it arrives. Embeds may be served from a Framer domain rather than yours; if you see
domain_not_allowed, add that domain too. - More fields. Copy an input and give it a new
name. Every named field is delivered in order.
Where to go next
- Spam protection
- Responses for every error code
- Get submissions in Telegram
- Templates for ready-made forms