Redirection

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

Feedback OK

This default behavior can be overriden in multiple ways.

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-form-id">
  <input
    type="hidden"
    name="_redirect"
    value="https://your-website.com/thanks.html"
  />
  <input type="email" name="email" />
  <button type="submit">Subscribe</button>
</form>

Preventing the redirect

  1. Add an input of type hidden.
  2. Set the input's name to _redirect.
  3. Set the value to false.
<form action="https://submit-form.com/your-form-id">
  <input type="hidden" name="_redirect" value="false" />
  <input type="email" name="email" />
  <button type="submit">Subscribe</button>
</form>

Customizing the default feedback page

You can customize the content of the default feedback page with the following reserved input names:

_feedback.language

Customizes the language of the feedback page.

Default value: en

Supported values: en, es, fr, nl

_feedback.success.title

Customizes the title of the success feedback page.

Default value: Your form has been submitted.

_feedback.success.message

Customizes the message of the success feedback page.

Default value: none

_feedback.error.title

Customizes the title of the error feedback page.

Default value: An error has occurred.

_feedback.error.message

Customizes the message of the error feedback page.

Default value: Please try again.

Example

<form action="https://submit-form.com/your-form-id">
  <input
    type="hidden"
    name="_feedback.success.title"
    value="I'm a custom title!"
  />
  <input type="email" name="email" />
  <button type="submit">Subscribe</button>
</form>

Feedback OK custom title