-
How to return reference to home page of object in Salesforce when clicked on a button?
I need to override cancel button in VF page in Salesforce. I tried using return null in
public pageReference cancelButton() {
return null;
}But it is not going anywhere after clicking on Cancel button.
I tried to use:
PageReference oppPage = new ApexPages.StandardController(opp).view();
oppPage .setRedirect(true);
return oppPage ;Still, it is not working.
Does anybody have an idea how to navigate to Opp Home page if we click on cancel button in VF Page?
Log In to reply.
Popular Salesforce Blogs
NorCal Dreamin’ 2019 Wraps Up! What Did Algoworks Witness?
A Salesforce community event led by the Salesforce community, NorCal Dreamin’ 2019 was a huge success! We had a blast while interacting with the amazing…
Things You Need to Consider While Integrating WordPress and Salesforce
WordPress and Salesforce are no less than a match made in heaven. When you go for a WordPress Salesforce Integration (WordPress website with Salesforce as…
How Salesforce IoT Cloud Prove to be Beneficial for Your Business
The term, Internet of Things (IoT), is a system of connected computing devices, such as mobiles, digital machines, and other objects with the potential of…
Popular Salesforce Videos
How to Create an Object in Salesforce Lightning Experience?
Salesforce has always emphasized on declarative development since the beginning. The motto is that enterprise software should be easy to use for customers. With “clicks…
Salesforce Diagram | Salesforce Diagramming Framework
Diagrams help drive key project decisions, align delivery teams, and help everyone understand where you’re going and what’s been done. Consistent, easy-to-understand diagrams are a…
How to Configure and Customize Salesforce Lightning
A Salesforce expert will guide you through all of the configuration, customization, and personalization options available so you can get the most out of Lightning…