function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Override standard button save of Opportunity

I want to override the standard functionality of save button on Opportunity object.I have to show the javascript popup window when user click on Save Button.Is user hits Yes the recrd should save if he says No it shoud save same page.


If this in step 1 I  need to override save button can some one help me. 


To di this, I believe you will have to override the new button to direct to a VF page with a custom save function. You would have to create the VF page the new button directs to as well which can be done pretty quickly using the default display for the edit page.