-
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
Best Practices for Salesforce Maintenance and Optimization
Maintaining a secure and efficient Salesforce environment is crucial for smooth operations, data integrity, and robust security. A well-optimized system not only enhances performance but…
Maximizing Email Marketing ROI with Salesforce and Mailchimp
Email marketing continues to be one of the most powerful digital channels for engaging customers and generating measurable business results. However, the true success of…
A Comprehensive Guide to Salesforce Lightning Development
Businesses are depending more and more on strong, adaptable platforms as the digital landscape changes in order to spur innovation and productivity. One such platform…
Popular Salesforce Videos
Automate Workflows and Process Intelligence with Nintex Development Services | Salesforce
Nintex is a leading process improvement, workflow, and automation software platform. In their own words, you can use the Nintex platform to manage, automate, and…
Salesforce CPQ from Scratch
CPQ Salesforce, or Configure, Price, Quote Software by Salesforce is a sales tool for companies to provide accurate pricing with any given product configuration scenario.…
How to Trigger the Lead Assignment Rule from Flow Builder
In this video, we will talk about how to trigger the lead assignment rule from the flow builder Salesforce. Here is the timestamp for your…