formrhythmDocs

Connect an HTML form

Use your endpoint as the form action. No script or library is needed.

The form

Every input you want to collect needs a name attribute. The name becomes the field label in your dashboard, exports and webhooks. Inputs without a name are not sent by the browser.

contact.html
<form action="https://www.formrhythm.com/f/YOUR_FORM_ID" method="POST">
  <label for="name">Name</label>
  <input id="name" name="name" type="text" required />

  <label for="email">Email</label>
  <input id="email" name="email" type="email" required />

  <label for="message">Message</label>
  <textarea id="message" name="message" required></textarea>

  <button type="submit">Send</button>
</form>

Field names can be anything, so use ones you will recognise later, such as email or company_size. Checkboxes and radio buttons send their value when selected. Your own styling and browser validation (required, type="email") keep working as before.

What happens after submit

For a regular form post, FormRhythm stores the submission and redirects the visitor with a 303 response. They land on a FormRhythm success page, or on your own page if you set a custom redirect.

Each submission is saved with:

  • every named field
  • the time it arrived
  • the visitor's IP address
  • their browser's user agent

You also get an email with the submission at your account's address. If the form has an email field, replying to that email goes straight to the visitor. See email notifications.

Block spam with a honeypot

Add a hidden field named _gotcha. People never see it, so they leave it empty, but many spam bots fill in every field they find. When _gotcha has a value, FormRhythm returns a normal success response but doesn't store the submission, email you or send a webhook.

<div style="position:absolute; left:-9999px" aria-hidden="true">
  <label for="_gotcha">Leave this field empty</label>
  <input id="_gotcha" name="_gotcha" type="text" tabindex="-1" autocomplete="off" />
</div>

Hide it with CSS rather than type="hidden", because bots tend to skip hidden inputs. The _gotcha field is never stored, so it won't appear in your dashboard.

Want visitors to stay on your page instead? Submit with JavaScript.

On this page