-
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 Year 2021 Highlights
As we come to a year-end, we cannot wrap up the year without acknowledging all the significant and game-changing work Salesforce has done in the…
7 Salesforce Podcasts to Listen To in 2022-2023
If you work in Sales or Marketing, there’s no way you haven’t at least heard of the customer relationship management tool Salesforce. This software allows…
Learn How to Use Custom Settings in Salesforce
What is Custom Setting? Custom Settings resemble custom items. They are by and large used to make custom arrangements of information and can be related…
Popular Salesforce Videos
How to Become Salesforce Certified Architect: Achieve More Under Pressure
Achieve more under pressure: CTA Edition How to become Salesforce Certified Architect 0:00 Introduction 5:21 What is CTA exam about 10:37 What is CTA Exam…
How Admins Can Improve Salesforce Data Quality
Learn how to diagnose the accuracy of your data and build a plan to maintain and enhance its’ quality using Salesforce tools. Follow along to…
Customizing and Replacing Sample Salesforce Data
Leverage our sample use case for Salesforce to learn how HyperIntelligence works—and rapidly get your own cards up and running! In this video, we’ll demonstrate…