Technical Documentation

HTML Form Integration: Zero-JavaScript Submissions

Learn how standard HTML forms submit to Form2Lead endpoints — the action attribute, POST method, honeypot field, and what comes back.

Last updated: 2026-08-15
Direct Answer

What is the core specification for html form integration: zero-javascript submissions?

Standard HTML forms submit key-value pairs directly to Form2Lead (POST https://form2lead.com/api/v1/f/YOUR_FORM_ID) using the browser's native POST mechanism — requiring zero client-side JavaScript or external libraries.

// Example Code
<form action="https://form2lead.com/api/v1/f/YOUR_FORM_ID" method="POST">
  <input type="text" name="fullName" required />
  <input type="email" name="workEmail" required />
  <textarea name="inquiry"></textarea>
  <button type="submit">Send Inquiry</button>
</form>

How browser form submission works

When a user submits a form with method="POST", the browser serializes all fields that have a name attribute and sends them as application/x-www-form-urlencoded (or multipart/form-data for file uploads). Form2Lead parses both formats and stores every named field as a submission value.

Handling the success response

Form2Lead redirects the browser to your configured success page after a valid submission. For AJAX flows, send an Accept: application/json header to receive a structured JSON response instead of a redirect.

HTML Form Integration: Zero-JavaScript Submissions FAQ

Direct Answer

Which field names are reserved in Form2Lead?

Form2Lead reserves the _gotcha honeypot field for spam detection. All other field names are stored as submitted. Use the dashboard to configure allowed domains, recipients, and success redirect URLs.