App Investigators scanner online

← All guides

Stop double-click orders and duplicate submissions

People double-click. They tap again when nothing seems to happen, and they refresh in the middle of a payment. If your app creates two of something when that happens, the bug is yours even though they caused it.

How to check

  1. Open a form that creates something: an order, a sign-up, a comment.
  2. Fill it in and press the submit button five times, fast.
  3. Look at your data. There should be exactly one new record.

Fix it in the page

Disable the button as soon as it is pressed, and show that something is happening:

JavaScript

form.addEventListener("submit", () => {
  button.disabled = true;
  button.textContent = "Sending...";
});

Re-enable it if the request fails so people can try again.

Fix it on the server too

The page fix is not enough, because a request can be sent twice by a retry, a slow network or two open tabs. The server should treat a repeat as the same request:

Do not forget payment pages

Check the button that actually charges money first. A duplicate charge is the most expensive version of this bug. Use your payment provider's test mode to try it safely.

Want this checked on your app?

The free quick look presses submit-style buttons several times in a row in safe mode, where nothing is changed in your app, and reports what the page does. Checking what your server stores needs a test copy of your app.

We email you once when a spot opens. No spam, and you can ask us to remove you any time at support@appinvestigators.com.

Related guides

Last updated 2026-11-24. This guide describes common problems and fixes. It is not a guarantee that any app is secure or free of bugs.