Keep your site on Netlify, or move it, without tying the contact form to one host.
Netlify Forms are convenient if the whole site stays on Netlify. If you might move hosts, or you already build elsewhere, a host-agnostic form backend is simpler. Replace the Netlify-specific attributes with a Formcask action:<form action="https://formcask.com/f/f_YOUR_FORM_ID" method="POST"> <input type="text" name="name" required> <input type="email" name="email" required> <textarea name="message"></textarea> <input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off"> <button type="submit">Send</button> </form>You do not need
data-netlify="true" or a hidden form in the build. Deploy the site as usual. Formcask stores the submissions and emails you, even if the site later moves to Cloudflare Pages, S3, or a VPS.
For AJAX (Netlify’s fetch pattern), POST JSON to the same URL with Accept: application/json. You will get {"ok":true} instead of a redirect.