Working HTML form examples for Formclick, the form API and form backend for any website.
Point a form at https://api.formclick.io/submit, add your access key, and every submission is filtered for spam, emailed to you, saved in your dashboard and sent on to your tools. No server, no backend code.
<form action="https://api.formclick.io/submit" method="POST">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<input type="email" name="email" required>
<textarea name="message" required></textarea>
<button type="submit">Send</button>
</form>- Create a free account at formclick.io and create a form.
- Copy the form's access key.
- Open any example below, replace
YOUR_ACCESS_KEYwith your key, and open the file in a browser. - Submit the form. The submission arrives in your inbox and your Formclick dashboard.
The Free plan includes 250 submissions a month and unlimited forms. See pricing.
| Example | What it shows | JavaScript |
|---|---|---|
| Contact form | Name, email, subject and message, with a honeypot and an inline success message | Formclick script |
| File upload | A job application with a resume upload and multiple work samples | Formclick script |
| Plain HTML | A form that works with no JavaScript at all, with an optional redirect to your own thank-you page | None |
| fetch and JSON | Your own submit handler: sends JSON with fetch() and handles success and error responses |
Your own |
Each folder has an index.html you can copy and a README.md explaining how it works.
formclick-html/
├── README.md This file
├── LICENSE MIT
├── examples/
│ ├── contact-form/ index.html + README.md
│ ├── file-upload/ index.html + README.md
│ ├── plain-html/ index.html + README.md
│ └── fetch-json/ index.html + README.md
└── dev/ Local test pages for Formclick maintainers (not published)
- Any field is captured. Every input with a
nameis saved and included in the notification email. - Two ways to submit.
- With the Formclick script, the form submits in the background, shows a loading state and an inline success or error message, and handles file uploads.
- Without it, the browser posts the form directly and Formclick shows a hosted thank-you page, or sends the visitor to your
redirectURL.
- JSON works too.
POSTJSON withfetch,axiosorcurl, and you get JSON back.
| Field | What it does |
|---|---|
access_key |
Required. Identifies your form. It can only create submissions, so it's safe in public HTML. |
subject |
Sets the notification email's subject line. |
from_name |
Sets the notification email's sender name. |
redirect |
A page to send the visitor to after submitting (full https:// URL; same website on the Free plan). |
botcheck, _honeypot |
Hidden spam traps. Real visitors never fill them; filled submissions are silently discarded. |
With the Formclick script, each <input type="file"> becomes a drag-and-drop upload box. Files upload directly to secure storage and are linked in the submission, up to 5 MB per file. File uploads are available on plans that include them; see pricing.
Every plan includes a spam filter, honeypot fields and per-visitor rate limits. Paid plans add Google reCAPTCHA, Cloudflare Turnstile and domain restriction (only accept submissions from your own websites).
The examples are plain HTML files. Open one directly in a browser, or serve the folder:
npx serve examples- Form API reference: endpoint, request formats, responses and status codes
- Documentation: frameworks, file uploads, spam protection, integrations
- Free HTML form templates: 100+ ready-made forms
- Integrations: Google Sheets, Notion, Airtable, webhooks and more
MIT. Copy, change and use these examples in any project.