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.

  1. Create a free W3Forms account and a form. Copy the access key shown once.
  2. 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).
  3. Paste the markup below. Replace YOUR_ACCESS_KEY with your key.
  4. Submit a test. Check the dashboard inbox and your notification email.

In Framer

  1. Add an Embed (or Code) component on the canvas.
  2. Paste the HTML below with your access key.
  3. Style inputs with Framer / custom CSS. Add your Framer publish domain under Allowed Domains in W3Forms.
  4. Optional: set a hidden redirect field 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

Other stacks