Disabled Save Button on Forms while Saving in Salesforce
How to Disable the Save Button on your Form while the Form is Saving to Prevent Multiple Submissions in a Custom Salesforce Visualforce Page Salesforce default functionality on forms will disable the save button after the form is submitted to prevent multiple submissions. The disabled Save button will look like: Disabled save button after form submit When creating your own VisualForce page you can write custom code to mimic this functionality in your forms using just Javascript and modifying the button's CSS styles. Create Javascript functions to disable and enable the save button You will need to create 2 Javascript functions that will enable and disable the button by modifying the css and properties of the save button. I am using jQuery but you can also do this with vanilla Javascript. I am currently using a unique style class attached to the button to look it up for convenience since this page does not get modified very often if eve...