Forms
TraffikCo Forms is a backend for the forms on your website. Keep your own HTML and point it at TraffikCo: submissions are checked for spam, stored, emailed to you and sent on to your CRM and tools.
Create a form
Forms → New form gives you an endpoint: https://traffikco.com/f/your-endpoint.
<form action="https://traffikco.com/f/your-endpoint" method="POST">
<input type="email" name="email" required>
<input type="text" name="name">
<textarea name="message"></textarea>
<!-- optional -->
<input type="hidden" name="_subject" value="New enquiry from the website">
<input type="hidden" name="_next" value="https://example.com/thanks">
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">
<button type="submit">Send</button>
</form>
Forms with enctype="multipart/form-data" can upload files. Files are stored privately and only your
team can download them.
Sending with JavaScript
const res = await fetch('https://traffikco.com/f/your-endpoint', {
method: 'POST',
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
body: JSON.stringify({ email: '[email protected]', message: 'Hello' }),
});
const result = await res.json(); // 200 on success, 422 with errors
Add your site under Allowed domains so browsers may post to the form (CORS). A domain also allows its subdomains.
Special fields
| Field | Effect |
|---|---|
_next | Where to send the visitor after submitting. It must be on your redirect host, the posting site or an allowed domain |
_subject | Subject line of the notification email |
_replyto | Address that notification replies go to (defaults to the submitter's email) |
_gotcha | Honeypot: leave empty and hidden; bots fill it in |
_t | Page-load timestamp (milliseconds), used to catch instant bot submissions |
_format=json | Reply with JSON instead of redirecting |
Without _next, visitors see a TraffikCo thank-you page. You can also turn on a hosted form page at
/f/your-endpoint if you don't have a website.
Submissions
The form's Submissions tab lists everything received, with Spam kept separately. Mark a submission not spam to run the notifications and integrations it missed. Export to CSV at any time.
- Notifications go to the addresses you choose (the team owner by default), with reply-to set to the submitter.
- An autoresponder can thank the submitter, using
{field}placeholders. - Turn Keep submissions off to deliver data without storing it.
- Submissions are deleted after 365 days, and spam after 30.
- Each form accepts up to 30 submissions per minute from the same IP address.