-
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

Investing in Salesforce and Jira Integration: Is It Worth It?
It goes without saying that every investment a business makes is done strategically for the business to profit from. Any business in the world would…

Implementation of Conga Composer in Salesforce
Conga Composer is a document generation tool and more than that. Conga Composer makes it easy to create and deliver sophisticated documents, presentations, and reports…

The Conflict of Cloud CRM System: Salesforce Vs Oracle
The growth in demand for cloud services technologies in recent years has been noticeable. As businesses increasingly invest in cloud computing technology, it has become…
Popular Salesforce Videos
Salesforce Essentials
Watch this video to learn what customer relationship management (CRM) is and how CRM helps companies better engage with prospects and customers, streamline communications, and…
Sharing Rules in Salesforce
Use sharing rules to extend sharing access to users in public groups, roles, or territories. Sharing rules allow administrators to automatically bypass organization-wide sharing settings.…
How to Find Volunteer Work as a Salesforce Professional
In this video, Brad discusses how to generate work experience through volunteer jobs. These jobs allow for new professionals to gain Salesforce specific, applicable knowledge…