How-to · Checked November 22, 2026

How to test a form without sending real submissions

Mark test submissions so the receiving side treats them differently, or send them to a separate test form. Either way your team is not emailed and your real data stays clean.

On FormTango, add a field named _test with the value 1. The submission is accepted and shown in the inbox for 24 hours, is not counted against your plan, and emails nobody.

What a good test covers

  • The request leaves the browser and goes to the right address.
  • Every field arrives with the name and value you expect.
  • The visitor sees the right thing afterward: a thank-you page or a message.
  • An error is shown when the send fails.
  • The form works on the published site, not only on your own machine.

Option 1: a test flag

While you are building, add a hidden field to the form:

<input type="hidden" name="_test" value="1">

If you send JSON, include "_test": "1" in the body. FormTango allows 50 test submissions a day per form. Remove the field before you go live, or real messages will be treated as tests and nobody will be emailed.

Option 2: a separate test form

Create a second form and use its endpoint in development and preview builds. This keeps test data apart from real data completely, and works with any service. Read the endpoint from an environment variable so the live build cannot pick up the test one by accident. FormTango's free plan has unlimited forms, so a test form costs nothing.

Option 3: test from the command line

curl sends a submission without a browser, which is useful in scripts and automated checks:

curl -X POST https://formtango.com/f/YOUR_FORM_ID -H "Accept: application/json" -d "email=test@example.com" -d "message=Hello" -d "_test=1"

A stored submission answers with 200 and { "ok": true }. Without the Accept header, a plain post answers with a 303 redirect to the thank-you page.

Watch the request in the browser

  • Open the developer tools and choose the Network tab.
  • Check "Preserve log" so the entry survives the page change.
  • Submit the form and click the request to your endpoint.
  • Check the payload for your field names and values, and check the status code.

What the status codes mean on FormTango

StatusMeaning
200 or 303Stored
400No named fields, or the body could not be read
403The form is paused
404No form has that id
413Over 100 KB of text, or over 4 MB with files
429Too many submissions, or the form reached its limit

Common mistakes

  • Using a real person's address in tests. Use addresses at example.com, which is reserved for examples.
  • Firing many test posts quickly without the test flag. Rapid automated posts can look like spam, and each visitor is limited to 10 submissions a minute per form.
  • Testing only with JavaScript on. Turn it off once and check the plain form post still works.
  • Leaving the _test field in the live form.

Common questions

How do I test a contact form without sending an email?
Mark the submission as a test. On FormTango, a field named _test with the value 1 stores the submission for 24 hours and sends no email.
Do test submissions count toward my monthly limit?
Not on FormTango when they carry the _test field. Up to 50 a day per form are accepted as tests.
How can I see what my form actually sends?
Open the browser's developer tools, go to the Network tab, submit the form and click the request. The payload shows each field name and value. The [form checker](/tools/form-checker) also finds markup mistakes before you send anything.

Written by the FormTango team. Facts about other services were read from their own pages on November 22, 2026. Spotted something out of date? Tell us and we will fix it.

Keep reading