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
RupBRupB 

URLFOR retURL in Console ?

I'm in Console display mode; on Request, I have a custom button creating an opportunity with onClick JavaScript.

What retURL should I use to display the newly created Oportunity ?

For the moment, I have hardcoded

if (newOppId != '') { window.location.replace("/" + newOppId)}

This redisplays the opportunity AND all the decoration (sidebar, top bar) inside the Console main panel; I would like to display the opportunity, just as if the user had asked to create it in the same Console mode.