Skip to content

About

HTML form examples for Formclick, the form API and form backend for any website.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Formclick HTML form examples

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>

Quick start

  1. Create a free account at formclick.io and create a form.
  2. Copy the form's access key.
  3. Open any example below, replace YOUR_ACCESS_KEY with your key, and open the file in a browser.
  4. 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.

Examples

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.

Repository structure

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)

How it works

  • Any field is captured. Every input with a name is 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 redirect URL.
  • JSON works too. POST JSON with fetch, axios or curl, and you get JSON back.

Special fields

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.

File uploads

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.

Spam protection

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).

Running the examples locally

The examples are plain HTML files. Open one directly in a browser, or serve the folder:

npx serve examples

Learn more

License

MIT. Copy, change and use these examples in any project.

About

HTML form examples for Formclick, the form API and form backend for any website.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors