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
ilewi121ilewi121 

Keep Opportunity Team when Owner Changes

Is it possible to keep an opportunity team in place when ownership of an account or opportunity takes place WITHOUT checking the box? Would any of you have a trigger or suggestion for this kind of function?
Ashish_SFDCAshish_SFDC
Hi , 


When we click on Change Owner link, it takes us to a different page - Ownership Edit . 

We have to override this page with a Visualforce page and give the default value as true and you can hide the Component from the page layout. 

See below for some sample code about the controller to do the same, 

http://stackoverflow.com/questions/15041259/maintaining-checkbox-status-in-apex-controller


Regards,
Ashish