A contact form for your HTML site, no server needed
Static site, Hugo, Jekyll or Eleventy: paste a few lines, the form shows up in your page and answers land in your team’s nest.
In three steps
-
Step 1 : Build your form in Canard Form and publish it.
-
Step 2 : In the Integrations tab, click “Copy the code”.
-
Step 3 : Paste it in your page’s <body>, where the form should appear.
<div id="form"></div>
<script type="module">
import { mountForm } from 'https://cdn.jsdelivr.net/npm/@canardform/sdk@1.0.0-alpha.4/+esm';
mountForm('#form', 'YOUR_FORM');
</script>
Without JavaScript: a classic HTML form
Your own markup, sent straight to Canard Form. For a very light page, or one that must work even with JavaScript turned off.
- Each field’s name is its key, shown in the editor’s Advanced settings.
- _redirect: your site’s thank-you page, on the same site as the form.
- _hp: an invisible trap field that only bots fill in.
- Pick the Standard or Strict protection: the bot check needs JavaScript.
- For files, add enctype="multipart/form-data" to the <form>.
<form action="https://canardform.app/v1/f/YOUR_FORM" method="POST">
<label for="name">Name</label>
<input id="name" type="text" name="name" autocomplete="name" required>
<label for="email">E-mail</label>
<input id="email" type="email" name="email" autocomplete="email" required>
<label for="message">Message</label>
<textarea id="message" name="message" required></textarea>
<input type="hidden" name="_redirect" value="https://your-site.com/thanks">
<input type="text" name="_hp" style="display:none" tabindex="-1" autocomplete="off">
<button type="submit">Send</button>
</form>
What you gain
- The form uses your site’s font and width, and takes your CSS.
- No server or PHP: answers arrive in the nest and by e-mail.
- Every published change shows on your site, no need to paste the code again.
- Spam filtered, files scanned by antivirus, hosted in France.
Frequently asked questions
SDK code or classic HTML form: which one should I pick?
The SDK code, at the top of the page, uses JavaScript: it shows the form as you built it, with its steps, conditions and bot check, and follows every published change. The classic HTML form, further down, uses no script: you write the fields yourself, steps fit on a single page and conditional fields must stay optional.
My site is on GitHub Pages, Netlify or hosting without PHP. Does it work?
Yes. Answers go straight to Canard Form, not to your server: a static HTML page is enough, with no database and no e-mail script.
What does the visitor see after sending?
With the SDK, your thank-you message replaces the form. With classic HTML, the page of your site set in _redirect, otherwise the Canard Form thank-you page. If something is wrong, the form page shows the errors and what the person had typed.
My site sends a Content Security Policy (CSP). What should I allow?
canardform.app in form-action for the HTML form, in connect-src for the SDK, and cdn.jsdelivr.net in script-src if you load the SDK from the CDN. The developer guide covers the bot check case.
Your first form is 5 minutes away.
Free to start. Change plans only when you need to.