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
SF@SiemensSF@Siemens 

Change Opportunity Owner link

Hello,
 
Just wanted to know where I could find the link (code) to edit the "change" opportunity owner link.
 
Thanks!
werewolfwerewolf
There is no link or code to do that.  What exactly is your goal?
SF@SiemensSF@Siemens

When you click the "change" button to change the opportunity owner, there are 2 checkboxes available.  I want those to automatically be defaulted to "checked" when the page appears. 

Thanks again for the help werewolf!

werewolfwerewolf
I don't know of any way to default those checkboxes.
sfdcfoxsfdcfox

Visualforce can actually handle this task. I haven't got the formatting to work correctly, but here's the basic concept:

Code:
<apex:page standardController="Opportunity" standardStylesheets="true"> 
    <apex:outputLink value="/{!Opportunity.OwnerId}" target="_top">
        <apex:outputLabel value="{!Opportunity.Owner.FirstName} {!Opportunity.Owner.LastName}" />
    </apex:outputLink>
    &nbsp;
    <apex:outputLink value="/{!Opportunity.Id}/a?retURL=%2F{!Opportunity.Id}&amp;sendMail=1"
        target="_top">[Change]</apex:outputLink>
</apex:page>

Put this page in your organization, and add the page to your opportunity page layout (remember to adjust the height), and you're good to go. Just modify the second link to include any parameters you want (here, I included the "send notification email" box as an example).

SF@SiemensSF@Siemens

Thanks for the code sfdcfox!  I was able to get the checkboxes defaulted to "checked".  I am still working on getting the format to work right.  I can't seem to adjust the height of the box (as you stated), but everything else works fine.

Thanks again!