-
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
Salesforce App Development Lifecycle – Get your App on AppExchange
Even before you start coding and materializing your fabulous app out of thin air, or computer air, it is very important to establish a development…
Future Methods in Salesforce: An Overview
Future methods are is a set of code that runs in the background. It is basically an asynchronous process. Don’t forget to check out: Asynchronous…
Know How to Integrate Smart Quotations with Salesforce
Of the many integrations that can be made by third parties into the salesforce platform, CPQ stands for ‘Configure, Price, Quote’ – in simple terms,…
Popular Salesforce Videos
Salesforce Automation Tools
What all automation tools available in Salesforce? Learn more about automation tools - a) Process Builder b) Lighting Flow c) Approval process d) Workflow rules…
What is Audit Trail in Salesforce?
The Setup Audit Trail feature in Salesforce enables you to closely track changes made to your organization. It records all modifications concerning the administration, customization, security,…
Which Objects are in the Salesforce Sales Cloud and Service Cloud?
In this video, We run through some of these diagrams. We'll also discuss some of the particular objects that you'll need to become familiar with as you…