-
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
How Can Salesforce Help Your Marketing Team?
Although CRMs have traditionally been linked to sales teams, Salesforce has gone further to provide great solutions for the Marketing department. Its Marketing Cloud platform…
Send OTP Using Login Flow | Salesforce Developer Guide
Two-factor authentication is the best path to employ for high standards security. This method includes adding a second factor to the login and password, with…
How A Leading Equipment Manufacturer Boosted its Sales Potential by Adopting Advanced Salesforce CPQ Solutions
Decades ago, organizations relied on legacy systems to meet their CPQ requirements. Software systems have advanced significantly since then. Today, we have cutting-edge SaaS platforms that…
Popular Salesforce Videos
4 Salesforce Implementation Challenges Faced by Enterprises
Let's have a look at some of the common challenges enterprises face while implementing Salesforce platform, if you need any help in implementing Salesforce from…
Salesforce Lightning Tutorial - How to Delete Records from Server
In this particular video you'll learn how to delete records from custom Salesforce Lightning Component using Apex Controller Method.
How to Prepare for Salesforce Admin Certification | Salesforce Training
This "How to prepare for Salesforce Admin Certification" video by Edureka will firstly help you understand who is a salesforce admin. Then, it will talk…