You need to sign in to do that
Don't have an account?
Override Save Button on Standard Object
Is there any way to override the behavior of the Save button on a standard object (i.e., Opportunity)? Basically we were planning on building an S-control that looks to see if an Opportunity (for a particular product type) is closed/won and if it is update a Boolean field on the Opportunity. Unfortunately it does not look like it’s possible to override or hide the standard Save button. Can anyone think of a work around other than outbound messaging to a hosted solution that will update the record via the API? We are using SFDC Enterprise Edition.
I worked on an idea once that doesn't always work -and I will tell you the problems below- but you can add a hidden sControl to the page that checks to see if the case is closed/won, and if it is, update the check box.
This normally works because after you save the opportunity it returns to view the page. However, if you edit it from the tab, the save returns to the tab list and the sControl never fires. Also, if the user is fast at clicking away from the screen, then the s-control doesn't have a chance to finish. Besides those two glaring problems, it works pretty well.