Advanced features

Custom redirect

After submitting a form the user will be redirected to a generic feedback page hosted by Formspark.

You can override this default behavior by specifying a custom redirect URL.

  1. Add an input of type "hidden".
  2. Set the input's name to "_redirect".
  3. Set the value to the URL you want to redirect users to.
<form action="https://submit-form.com/<your-destination-id>">
  <input type="hidden" name="_redirect" value="https://site.io/thanks.html" />
  <input type="email" name="email">
  <button type="submit">Subscribe</button>
</form>

Direct replies

When email notifications are enabled, Formspark enables you to directly "Reply" to the person who originally submitted the form.

The form must contain an input with a "_replyto" or "email" name.

<input type="email" name="email" placeholder="Your email" />
<input type="text" name="_replyto" placeholder="Your email" />

Honeypot

Every form falls victim to spambots at some point. How you handle them can affect your customers, most solutions tending to discourage people from filling out your forms.

The honeypot technique allows us to ignore spambots without forcing your users to fill out a captcha or jump through other hoops.

To enable this feature, add a field with the name "_honeypot" to your form and hide it with CSS (see example below). The submission will be silently ignored when a spambot enters a value.

<form action="https://submit-form.com/<your-destination-id>">
  <input type="checkbox" name="_honeypot" style="display:none" tabindex="-1" autocomplete="off">
  <input type="email" name="email">
  <button type="submit">Subscribe</button>
</form>

Submitting the form in a different tab

When setting the "target" attribute to "_blank", the form will be submitted in a new tab.

<form action="https://submit-form.com/<your-destination-id>" target="_blank">
  <input type="email" name="email">
  <button type="submit">Subscribe</button>
</form>