Hide submit button
Categories
Component ID
337844
Component name
Hide submit button
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
52848
Component created
Component changed
Component body
Some users accidentally click the submit button more than once while waiting for their post to be saved. In some cases this may result duplicate postings or duplicate e-commerce orders.
There are few ideas on how to solve duplicate postings but none is perfect. One of the solutions is a bit of jQuery to hide or disable the submit button after it has been clicked and replace it with an informative text such as "Processing..." .
This module wraps that jQuery code and provides some options. Of course this, too, is not a perfect solution as it requires Javascript to be enabled. For browsers with Javascript disabled this module will have no effect at all.
Features:
- Hide or disable the submit button after it has been clicked
- Display a message and/or image while waiting
Known issues:
- Hiding buttons of AJAX forms may cause unwanted results. The 7.x-2.x release has a hook to let site builders change the configuration depending on the path.
- Using disable mode sometimes causes problems with multiple operation forms.
