My app utilizes forms all over with submit buttons. Input data goes through validation in my controllers...
But I just realized that if I am quick enough, I am able to click on the submit button 4-5 times before the first submit's return message returns.
This is an issue because people might click on submit button without realizing that the first one is still loading.
On a database level, it seems auto incrementing works but Since I had some cells which I increment manually through my controllers, since initial first increment is not finished before the others come, it messes up the increments and cell gets only incremented once instead of 4-5 times....
There is also issue form data being persisted 4-5 times.... This can't be normal...
Is there a way to solve this application wide or do I have take precaution for each form/submit I have?
Thanks.