-
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
Batch Apex in Salesforce - Learn About the Advantages and Syntax
Batch class in Salesforce is utilized to run huge positions (think thousands or millions of records!) that would surpass typical handling limits. Utilizing Batch Apex,…
Top New Features in Spring’24 Release: Salesforce Platform in Lightning
To all the Salesforce enthusiasts, we’re excited to share the latest enhancements, features, and modifications rolled out on the Salesforce Lightning Platform. The top new Salesforce features…
Salesforce Data Migration Process
Best Practices for Data Migration The process of migrating data in Salesforce Project appears to be an easy task for Salesforce Developers but it’s not…
Popular Salesforce Videos
Lightning Notifications Library | How and When to Use it in Salesforce? | Toast | Notice
In this video, you will learn about Lightning Notifications Library. We have two types of notifications available in it. 1. Toast 2. Notice In the…
Creating an Approval Process in Salesforce with Example
Approval Process in Salesforce is an automated process that automates how Salesforce records are approved in your org. Approval Process in Salesforce is a combination…
What is Salesforce Marketing Cloud?
Salesforce Marketing Cloud helps in digital marketing automation and analytics. In this video, we have provided detailed information about what is salesforce cloud and its…