Docs / Hosting
Contact form on Netlify without Netlify Forms
Swap the data-netlify attribute for a Wrenform action URL. The same form keeps working if the site ever leaves Netlify.
<form action="https://wrenform.com/f/YOUR_FORM_ID" method="POST">
<input type="text" name="name" required>
<input type="email" name="email" required>
<textarea name="message" required></textarea>
<input type="text" name="_honey" style="display:none" tabindex="-1" autocomplete="off">
<button type="submit">Send</button>
</form>
<!-- Optional: a timing check against bots, and data-ajax to submit in place -->
<script src="https://wrenform.com/js/v1/form.js" defer></script>Why move
Netlify Forms works well while a site stays on Netlify: Netlify finds the form when it deploys. Teams move when:
- the site may leave Netlify, or the same form must work on several hosts;
- the form is built with JavaScript and needs a hidden HTML copy just so the build detects it;
- they want submissions stored in the EU, with a DPA accepted in the dashboard.
For Netlify's own plans and limits, see our dated comparison.
Steps
- Create a form in Wrenform and copy its form ID.
- Remove
netlifyordata-netlify,netlify-honeypotanddata-netlify-recaptchafrom the form, and the hiddenform-nameinput if you added one. - Set
actiontohttps://wrenform.com/f/YOUR_FORM_IDand keepmethod="POST". - Rename your honeypot input to
_honey. It's a field people never see, so only bots fill it in. - Set Redirect to in the form's settings if you had a custom success page. See redirects.
- Deploy, then add your
netlify.appaddress and your custom domain under Allowed origins.
Netlify only processes forms that carry its own attribute, so once it's gone, Netlify leaves the form alone and the browser posts it to Wrenform. Old submissions stay in Netlify; export them there if you need them.
Limits on Wrenform
The Free plan includes 250 submissions a month. Spam doesn't count toward it. Paid plans are on pricing.
Test it
Open the deployed page and send the form. You should land on your thank-you page, and the submission shows in your dashboard and arrives by email.
Common problems
- The submission still shows up in Netlify. A
netlifyattribute or a hiddenform-nameinput is left on the form, or in a static copy of it. origin_not_allowed. Add every address the site answers on: thenetlify.appone, the custom domain,www. See errors.- No email arrives. A new recipient must confirm first. See troubleshooting.
Next steps
- Netlify Forms compared with Wrenform: dated facts from Netlify's docs.
- Vercel and GitHub Pages: the same form on other hosts.
- Spam: how the filter works.