HTML simple

Un formulaire classique, sans JavaScript. Le navigateur envoie le POST.

  1. Copiez le HTML.
  2. Traduisez les libellés.
  3. Ajoutez au besoin un champ caché _redirect.
  4. Le champ botcheck doit rester vide.

HTML

<form action="https://formgong.com/submit" method="POST">
  <input type="hidden" name="access_key" value="fk_your_access_key">
  <input type="hidden" name="_lang" value="fr">
  <label>Nom <input type="text" name="name" autocomplete="name" placeholder="Votre nom" required></label>
  <label>E-mail <input type="email" name="email" autocomplete="email" placeholder="vous@exemple.com" required></label>
  <label>Message <textarea name="message" placeholder="Comment pouvons-nous vous aider ?" required></textarea></label>
  <div aria-hidden="true" style="position:absolute;inset-inline-start:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)">
  <label>Laissez ce champ vide<input type="text" name="botcheck" tabindex="-1" autocomplete="off"></label>
</div>
  
  <button type="submit">Envoyer</button>
</form>

Moving a form from Web3Forms, Formspree or FormSubmit

Most forms move in about two minutes. Change the form's action to the Formgong /submit URL and put your Formgong key in a hidden access_key field. Formgong reads the hidden fields these services use, so you can leave them in place.

  • subject, from_name and replyto (Web3Forms) work. A field named subject becomes the email subject when the dashboard has none, and it stays in the submission.
  • _subject, _replyto, _redirect, redirect and _next (FormSubmit) work. A redirect sent by the page must stay on your own site or on an allowed domain. To send visitors to another site, set the redirect in the dashboard.
  • The honeypots botcheck (Web3Forms), _gotcha (Formspree) and _honey (FormSubmit) work.
  • _cc, _bcc, ccemail, _webhook, _autoresponse, _template and _captcha are ignored on purpose. Anyone can read a page's HTML, so these fields would let strangers choose where your mail goes. Add extra recipients, webhooks and the autoreply in the dashboard instead.

Send one test submission and open it in the Formgong inbox before you remove the old service.

Starter prêt à l’emploi sur GitHub: github.com/formgong/html-starter. Licence MIT : cliquez sur « Use this template » ou copiez les fichiers.

Nouveau projet en une commande: npm create formgong@latest -- --template html (npm: create-formgong)

Ajouter à un projet existant: npx formgong init (npm: formgong)

Formulaire de contact pour HTML →

Obtenir une clé