# Netlify

MuxForms on Netlify is the embed snippet in your site template plus an allowlisted origin (https://yoursite.netlify.app or custom domain). No netlify.toml form handling or build plugins required.

## Netlify setup

| Step | Detail |
| --- | --- |
| Template | Add embed to layout |
| Allowlist | Production origin |
| Deploy previews | Optional preview origins |
| Functions | Only if server-side submit |

## Layout snippet (Eleventy, Hugo, or SPA)

```
<!-- e.g. src/_includes/footer.njk -->
<div data-form-id="FORM_UUID"></div>
<script src="https://www.muxforms.com/embed.js" defer></script>
```

## Deploy context

Branch deploys use a different origin—add `https://deploy-preview-123--yoursite.netlify.app` when QA needs live submit.

## FAQ

### Migrate off Netlify Forms?

Swap the form markup for the MuxForms div; historical rows stay in Netlify until export.

### Netlify Functions?

Optional: Function POSTs with ingest secret for custom UI without exposing secrets in HTML.

### Gatsby on Netlify?

See /docs/gatsby for framework-specific placement.

### Spam?

Enable Turnstile on the form in MuxForms.

---

HTML version: https://www.muxforms.com/docs/netlify
Source: MuxForms (https://www.muxforms.com)
