-
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 Tips for Managing Your Data Cleaning Process Effectively
In the current business environment, data is an asset that can dictate the success or failure of your business. You can utilize data to make…
Know All About the Role of Salesforce Administrator
The role of a Salesforce Administrator is wide and varied, depending on the skills of the person performing the role and the size/complexity of the…
No Code Salesforce and JotForm Integration | Salesforce Guide
One of the most popular cloud-based form automation solutions, JotForm enables users to design and manage web forms as well as track user feedback. It…
Popular Salesforce Videos
Forecast Accurately With Collaborative Forecasts in Salesforce Lightning Experience
Learn how to use Collaborative Forecasts to predict your team’s sales and take advantage of cumulative rollups, forecast adjustments, territory forecasts, forecast sharing, and quota…
How to Become Salesforce Developer | Salesforce For Beginners
In this how-to become Salesforce developer video, you will be learning what is Salesforce, the fundamentals of Salesforce, how to become a Salesforce developer, how…
What are the Objects in Salesforce?
What is the difference between Profile Vs Permission Set? Salesforce Interview Questions and Answers by CRS Info Solutions. Watch this video to learn more. Read…