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
takumi_harada1.3929139014862039E12takumi_harada1.3929139014862039E12 

URL Parameter for change Opportunity owner to default "Give current owner Read/Write access to opportunity upon transfer"

Hello,

We have Opportunity Teams enabled in our org, and are trying to find a way to default certain options when changing owner on the Opportunity.

We found that we are able to append "&keepTeam=1" to the URL for the change owner link in order to default the first option "Keep Opportunity Team", but we have not found if there is any parameter to default to the second option which is displayed after "Keep Opportunity Team" is checked - "Give current owner Read/Write access to opportunity upon transfer".

The two radio buttons have values of "accessR" and "accessRW", respectively, but these parameters do not seem to change anything for these two radio buttons when placed in the URL (ie. accessRW=1, accessRW=true).  Does anyone know if there is any way to default to this option in the URL?

Thanks in advance.
Ashish_SFDCAshish_SFDC
Hi , 


When you click on Change link on the Opportunity Owner field - it takes us to the "Ownership Edit" page. 

The Fields "Keep Opportunity Team" and "Give current owner Read access to opportunity upon transfer." are against  a check box and a radio button. 

I would suggest you to create a new visualforce page that is similar to the Opportunity Owner Edit page with the Fields having the required default values. 

You can change the URL in the link to the New VF page. 

See below the doc for Overriding a page with VF, 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_tabs.htm


Regards,
Ashish
JohnSmithJohnSmith
As previously mentioned you cannot currently default the option in the URL.  I have managed to write a javascript work around that can set the value as a default though - and it works on the latest Winter '15 release.

To implement a javascript hack you need to use the method detailed at http://salesforce.stackexchange.com/questions/38918/end-of-javascript-sidebar-workarounds (http://salesforce.stackexchange.com/questions/38918/end-of-javascript-sidebar-workarounds" target="_blank) and then set the default value via javascript
Dara WardeDara Warde
@takumi_harada1.3929139014862039E12 I am trying to default the checkbox to True for Keep Opportunity Team on Opp Owner Change (your "&keepTeam=1") - where/how were you able to do this?
thanks in advance and hopefully you still remember years later!