timegrid
timegrid copied to clipboard
Prevent multiple form submissions for POST (save)
Multiple form submissions (button clicks on slow connections) may generate duplicated records.
Example attached.
user/business/X/contact/create
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Solution 13b9d3358da5acdbfdbcd149f0ad91250e043bfa still causes some problems upon submissions. Business registration submit button does not submit. Patch was removed.
This still an issue?
Unfortunately, it is. You can reproduce it by clicking many times a submit button on a form.
There exist some ways to workaround it with javascript, but I believe it needs some research. There should be a stardard way to get around with this.
I will take a look at this. I had the same issue at work and was able to resolve it through Javascript.
Glad to know! Thanks for jumping in.
You may use demo.timegrid.io to reproduce the issue, and I may provide another development environment if required. Just let me know! :)
Thanks, I have a vagrant box spun up and will start playing around with the system.
@alariva What were the issues with your solution? I've fixed this on another website. There I disabled the button after submit.
It looks like this patch made form submission to not work at all (sorry, I have no further details on this), but I agree with a working js approach as long as its easy to implement on most affected forms in a reusable way.