Skip to content
Lazyform
Docs menu

Frameworks and builders

Webflow

Send Webflow form submissions to Lazyform by setting the form block's action URL, or by pasting an HTML form into an Embed element.

Webflow's form block can post to an external URL, so you can keep designing the form visually and let Lazyform handle the submissions. If you'd rather paste a ready-made form, use an Embed element instead.

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_).

Option 1: point the Webflow form at Lazyform

  1. In the Designer, select the Form Block (the outer form element, not a field).
  2. Open its settings and find the form's Action and Method fields.
  3. Set Action to https://lazyform-api.xvelopers.com/submit and Method to POST.
  4. Select each input and check its Name in the field settings, for example name, email, message. These names become the field labels in your emails.
  5. Drag an Embed (Code Embed) element inside the form block and paste the hidden fields below.
  6. Publish the site and send a test message from the live site.
Embed inside the form block
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<input type="hidden" name="redirect" value="https://your-site.webflow.io/thank-you">
<input type="checkbox" name="botcheck" class="hidden" style="display:none">

The redirect field sends visitors back to a page on your site after submitting. Create a thank-you page in Webflow and use its URL, or remove the line to use Lazyform's thank-you page.

With a custom action, Webflow's built-in success and error messages are not used. The visitor is sent to your redirect page (or Lazyform's) instead. Exact panel labels can change between Webflow versions; look for the form block's action and method settings.

Prefer no hidden access key field? Set the action to https://lazyform-api.xvelopers.com/f/YOUR_ACCESS_KEY instead. You still need the Embed for the honeypot and redirect.

Option 2: paste a complete form

If you want a form with an inline success message and no page change, add an Embed element where the form should appear and paste:

Embed element
<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');
  lf.addEventListener('submit', async (e) => {
    e.preventDefault();
    const status = document.getElementById('lazyform-status');
    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.';
    }
  });
</script>

Style it with classes in your site's custom code, or give the inputs Webflow classes by building the form visually (Option 1).

Tips

  • Test on the published site. Embeds and custom actions don't run in the Designer canvas.
  • Lock it to your domain. Turn on allowed websites in the form's settings and add both your custom domain and your webflow.io staging domain.

Where to go next