Forum Replies Created

  • Hi Vinay,

    I tried this but still same issue. It is not going anywhere after clicking on cancel button.Actually I have created one visualforce tab which is launching VF page having standard controller(Opportunity)and extension.

    I got a way through

    <input type="button" class="btn" value="Cancel" onclick="window.location = '{!URLFOR($Action.Opportunity.Tab, $ObjectType.Opportunity)}'" />

    in vf page to redirect it to Opp Home page.

    It is working fine for classic but in lightning also it is navigating to classic view of Opp Home. Is there any way to control it so that when in classic it will move to classic view and when in lightning it will move to Lightning view of Opp Home page.

     

Popular Salesforce Blogs

Popular Salesforce Videos