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
SteveA101SteveA101 

Problem with retURL

Hi All,

 

I have a custom button with the following URL:

 

/setup/ui/recordtypeselect.jsp?
ent=Contract
&save_new_url= /800/e?CF00Nf0000000Za1A={!Opportunity.Name}
&CF00Nf0000000Za1A_lkid={!Opportunity.Id}
&accid={!Opportunity.AccountId}
&retURL=%2F{!Opportunity.Id}
 
All works well, except when the user hits Cancel.  Upon Cancel, it returns the User to his home page, not the previous Opportunity like I was hoping.  See anything wrong with the above URL?  Thanks!
SteveA101SteveA101
And strangely enough, when I look at the URL after I select the record type (so I am on the Contract Edit screen), I don't see any reference to the RetURL!

https://cs16.salesforce.com/800/e?CF00Nf0000000Za1A=faef&RecordType=012f00000000E0K&CF00Nf0000000Za1A_lkid=006f0000003pvlb&accid=001f0000009X4ya&ent=Contract