This content is not currently supported on this browser.
+ Start a Discussion

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.

Thank you,

Michael SnowMichael Snow
The only way to override the behavior of a save is by an apex trigger.  Apex trigger code is still only available to unlimited 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.

Thanks for the response.  I found the following request on the Idea Exchange.  I would encourgage anyone who is interested in seeing this addressed to vote for it.