SolutionGuidance / psm

Welcome to the Medicare/Medicaid Provider Enrollment Screening Portal
http://projectpsm.org/
Other
26 stars 20 forks source link

Protect forms against multiple submission #1027

Open jasonaowen opened 6 years ago

jasonaowen commented 6 years ago

Double-submit, multiple submissions, or duplicate form submissions is a class of error that results in the user clicking a form button (such as "next" or "submit") twice. This can be because of an accidental double-click, or, in the case of a slow response, if the user thinks "oh, did my click not work? I'll try again."

If the PSM form being submitted is the last step of the enrollment application sequence, the response can take multiple seconds, as behind the scenes we're doing a lot of work. Clicking "Submit" again during that time leads to an error, as the first (discarded) response says "success!" and the second (displayed) response says "Error: Cannot modify submitted ticket."

Protect against multiple submission so as to prevent this error.

jasonaowen commented 6 years ago

See also discovery / debugging discussion thread on Zulip.