Custom Alert Message On Salesforce 'Submit For Approval' Button !?!
Recently I came across a scenario where the business wanted to see the custom message on click of submit for approval button?!? When we understood what was happening on click of the button, It was lot easier for us to implement that. Salesforce.com apps are being used on the web browsers We can identify what is given to the browser by "right-clicking" on the browser element and seeing what the html for that element, like explained below. I recommend you do this before proceeding with the solution. 1) Login 2) Go to a record which has an active approval process. 3) Right click on "submit for approval" button 4) Inspect element (Chrome/ Firefox) or view source (safari/ IE and you have to search for "submit for approval" button tag) There, you will see -- That is just html generated by Salesforce but it has something that we need for this solution. So lets understand that. It has for confirmation-type alert what is conform() and it has g...