Direct HTML Form Action
Connect HTML forms directly to Heels without writing any server-side or client-side JavaScript.
Direct HTML Form Action
The simplest way to use Heels is via native HTML <form> tags. Set your form's action attribute to your Heels integration endpoint with method="POST".
<form action="https://publisher-heels.arshil.cc/events/YOUR_INTEGRATION_ID" method="POST">
<!-- Required user input fields -->
<div>
<label for="name">Your Name</label>
<input id="name" name="name" type="text" required />
</div>
<div>
<label for="email">Email Address</label>
<input id="email" name="email" type="email" required />
</div>
<div>
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
</div>
<!-- Submit button -->
<button type="submit">Submit Inquiry</button>
</form>Special Control Attributes
Heels recognizes special reserved fields that customize how submissions are processed and redirected:
| Field | Purpose | Example |
|---|---|---|
_redirect / _next | URL to redirect the user to after successful submission. | <input type="hidden" name="_redirect" value="https://mysite.com/thanks" /> |
_subject | Custom subject line used in email and Telegram notifications. | <input type="hidden" name="_subject" value="New Enterprise Inquiry" /> |
_replyto | Explicit reply-to email address. If omitted, Heels checks the email field. | <input type="hidden" name="_replyto" value="[email protected]" /> |
_gotcha | Honeypot field for invisible bot and spam suppression. | <input type="text" name="_gotcha" style="display:none !important;" /> |
Custom Redirect (_redirect / _next)
By default, when a user submits an HTML form via browser navigation, Heels sends an HTTP redirect (303 See Other or 302 Found) to the URL configured in _redirect or _next.
<form action="https://publisher-heels.arshil.cc/events/YOUR_INTEGRATION_ID" method="POST">
<!-- Redirect to a dedicated thank-you page -->
<input type="hidden" name="_redirect" value="https://yourdomain.com/thank-you" />
<input type="email" name="email" placeholder="Enter your email" required />
<button type="submit">Subscribe</button>
</form>Allowed Origins Security
If your integration has configured allowed origins, the redirect target and submitting page must match your whitelisted domains.
Spam Prevention (Honeypot)
Spam bots automatically fill in every input tag they find in HTML forms. You can add an invisible honeypot input field:
<!-- Honeypot: Hidden from human visitors via CSS -->
<div style="display:none !important;">
<label for="_gotcha">Leave this field blank</label>
<input type="text" id="_gotcha" name="_gotcha" tabindex="-1" autocomplete="off" />
</div>If a submission contains any value in _gotcha, Heels silently discards the notification to prevent spamming your Telegram and email channels while still returning a success status code to deceive the bot.
Arbitrary Custom Fields
Heels dynamically accepts any key-value pairs submitted by your form. You can include checkboxes, radio buttons, dropdowns, and nested strings:
<form action="https://publisher-heels.arshil.cc/events/YOUR_INTEGRATION_ID" method="POST">
<input type="text" name="company" placeholder="Company Name" />
<select name="budget">
<option value="under_5k">Under $5,000</option>
<option value="5k_20k">$5,000 - $20,000</option>
<option value="enterprise">Enterprise ($20k+)</option>
</select>
<label>
<input type="checkbox" name="services[]" value="frontend" /> Frontend
</label>
<label>
<input type="checkbox" name="services[]" value="backend" /> Backend
</label>
<button type="submit">Submit RFP</button>
</form>All fields are cleanly formatted and highlighted in your Telegram, Webhook, and Email alerts.
