You need to sign in to do that
Don't have an account?
SFDC n12
Overriding standard "save" button on opportunity with a popup message
Hi,
I am trying to overide the standard save button on opportunity object with a popup message when the following condition is met
opportunity stage ="closed lost"
please let me know hw to proceed on this
help me with the code
Thanks
I am trying to overide the standard save button on opportunity object with a popup message when the following condition is met
opportunity stage ="closed lost"
please let me know hw to proceed on this
help me with the code
Thanks
It depends on what you want to do when the condition is met.
If your requirement is to display just a message, then go for validation rules.
you cannot remove standard save button from page layout. If you are particular about having a popup message, you have to build a visual force page that displays the opportunity page without standard save button and with a custom save button. You can write any code you want on the click event of the button using javascript(actionfunction?)
Hope this helps!
JG
https://developer.salesforce.com/forums?id=906F000000096PfIAI
The below post has the code to get the confirmation popup
http://salesforce.stackexchange.com/questions/2046/how-to-add-a-confirm-dialog-to-a-command-button