-
How to override the redirect on saving force:createRecord in Salesforce Lightning?
I need to override the redirect on save of a force:createRecord lightning component.
var eve = $A.get("e.force:createRecord");
eve.setParams({
"entityApiName": "Opportunity",
"defaultFieldValues": {
"AccountId" : accountId
},
"panelOnDestroyCallback": function(event) {
console.log('test');
//console.log(event.getParam("id"));
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
"url": "<some visualforce page url>",
"isredirect": "true"
});
urlEvent.fire();
}
});
eve.fire();
Log In to reply.
Popular Salesforce Blogs
Dashboards in Salesforce - A Brief Guide
Dashboards in Salesforce are graphical representations of reports. Visualize data from reports as components. These components provide a summary of your organization's key analytics and…
CRM Software Development Company: Empowering Businesses with Custom CRM Solutions
In today’s highly competitive digital marketplace, customer relationships are more than just interactions—they're the foundation of success. Enter the CRM Software Development Company, the game-changer…
7 Steps In an Ideal Salesforce Change Management Process
A change management plan in Salesforce involves a specific set of actions to ensure a smooth transition between an organization’s goals, processes, and technologies while…
Popular Salesforce Videos
Unleash Your Salesforce Process Automation With This New Connector For Salesforce Lightning Platform
Unleash your Salesforce process automation with this new Connector for Salesforce Lightning Platform (a set of 130 Activities and 5 wizards that allow you to…
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…
The future of Salesforce Lightning (according to Mike Rosenbaum)
We find out from Mike Rosenbaum (@mike945778) who is in charge of Salesforce Sales, Service & Lightning, the future of Salesforce Lightning at the London…