What's the Best Choice?
Home / Answer
STRAIGHT ANSWER · Work, software & accounts

How do I stop a web form submitting twice when somebody double-clicks the button?

Our answer

Disable submit immediately after first click and implement server-side idempotency for each submission token.

Why this approach makes sense

Device software, permissions and connected services change how a feature behaves; use settings for the actual model rather than a generic workaround.

Before you try it

Verify the relevant device and account permissions, and make changes one at a time.

Questions people ask

What is a safe starting point for stopping a web form submitting twice when somebody double-clicks the button?

Disable submit immediately after first click and implement server-side idempotency for each submission token.