libreForms / libreForms-flask

Flask implementation of the libreForms API
https://libreforms.readthedocs.io
GNU Affero General Public License v3.0
4 stars 1 forks source link

Disable Submit buttons onClick to minimize data spamming #500

Closed signebedi closed 9 months ago

signebedi commented 9 months ago

Disable Submit buttons onClick to minimize data spamming I noticed that double-clicking form submit buttons created a frustrating issue in production where form data was submitted twice to the server. I think that the problem is related to my mongodb wrapper class, not necessarily other backend tools like SQLAlchemy... but I'd like to impose a few front end fixes to help remediate the problem. I'll create a separate issue to handle duplicate requests on the server side.

Originally posted by @signebedi in https://github.com/libreForms/libreForms-flask/issues/499#issuecomment-1900706530