-
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
How to Connect Salesforce Order Management System with Your B2C Commerce Storefront
What do you think your customers want from you? Only your products or services? Well, no! Nowadays, customers want a seamless buying experience, from adding…
B2B Commerce Cloud Summer’24 Release
Salesforce's B2B Commerce Cloud Summer ’24 release is here, bringing a variety of new features designed to improve customer experience and make business operations more…
What is Salesforce B2B Commerce Cloud?
The eCommerce industry has witnessed tremendous growth in recent years as businesses increasingly turn to digital platforms and technologies to expand their reach. In this…
Popular Salesforce Videos
Multi-factor Authentication in Salesforce | Setup of MFA
Multi-factor Authentication in Salesforce: Salesforce offers simple, innovative MFA solutions that provide a balance between strong security and user convenience. Because your business requirements and…
Salesforce Grid Component Modernization with Webix Widgets
Take a break and watch a short video about how we modernized the Salesforce Grid component with Webix.
Salesforce Training for Beginners | Salesforce Tutorial for Certification
Once upon a time, storage was a big problem, but the innovations in technology have solved this. We can say that Cloud computing is one…