Add a Contact Form Backend to Framer
Embed a working contact form in a Framer site with W3Forms and keep submissions under your control, with email notifications and spam protection.
- Create a free W3Forms account and a form. Copy the access key shown once.
- Optional: in Form → Settings, list your site under Allowed domains, so posts from other sites are marked as spam. Include the port when testing locally (for example
localhost:5500). - Paste the markup below. Replace
YOUR_ACCESS_KEYwith your key. - Submit a test. Check the dashboard inbox and your notification email.
In Framer
- Add an Embed (or Code) component on the canvas.
- Paste the HTML below with your access key.
- Style inputs with Framer / custom CSS. Add your Framer publish domain under Allowed Domains in W3Forms.
- Optional: set a hidden
redirectfield to a Framer thank-you page, or use the redirect URL checker first.
framer-embed.html
<form action="https://api.w3forms.com/submit" method="POST">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY" />
<label for="name">Name</label>
<input type="text" id="name" name="name" required />
<label for="email">Email</label>
<input type="email" id="email" name="email" required />
<label for="message">Message</label>
<textarea id="message" name="message" required></textarea>
<input type="text" name="_gotcha" tabindex="-1" autocomplete="off"
aria-hidden="true" style="position:absolute;left:-9999px" />
<button type="submit">Send</button>
</form>Next steps
- Generate a correct honeypot
- Validate your form HTML
- Configure redirects and spam settings
- Add a signed webhook
- Compare W3Forms to Formspree & others