HTML sencillo
Un formulario clásico, sin JavaScript. El navegador hace el POST.
- Copia el HTML.
- Traduce las etiquetas.
- Si quieres, añade un campo oculto _redirect con la página de gracias.
- El honeypot botcheck debe quedar vacío.
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="es"> <label>Nombre <input type="text" name="name" autocomplete="name" placeholder="Tu nombre" required></label> <label>Correo electrónico <input type="email" name="email" autocomplete="email" placeholder="tu@ejemplo.com" required></label> <label>Mensaje <textarea name="message" placeholder="¿En qué podemos ayudarte?" 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>Deja este campo vacío<input type="text" name="botcheck" tabindex="-1" autocomplete="off"></label> </div> <button type="submit">Enviar</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_nameandreplyto(Web3Forms) work. A field namedsubjectbecomes the email subject when the dashboard has none, and it stays in the submission._subject,_replyto,_redirect,redirectand_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,_templateand_captchaare 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.
Plantilla lista en GitHub: github.com/formgong/html-starter. Licencia MIT: pulsa «Use this template» o copia los archivos.
Proyecto nuevo con un comando: npm create formgong@latest -- --template html (npm: create-formgong)
Añadir a un proyecto existente: npx formgong init (npm: formgong)
Formulario de contacto para HTML →