I am using force:createRecord to get record creation pop up page. However, as soon as user click on save button of that popup, he is redirected to newly created record by Salesforce. Can we control this Or, my requirement is to keep the user on the same page.

  • Raj
  • 1
    The popup creation record is standard, and for the moment I don't think we have extensions as we have in classic to control the standard forms. So to answer your requirement you need to create your own Lightning Component to control it all (even on Save action). – Simon Govaert Mar 9 '17 at 6:50

Yes, we need to create our own component as standard component is not flexible yet.


You can use "navigationLocation":LOOKUP.

Below is the Code, It might help you :

 // Add this below line in the function
    var LOOKUP = 'LOOKUP'; 
    "entityApiName": entityApiName,
     "recordTypeId": recordTypeId,
    // Add the below line
      // Add the above line

  • Can you provide documentation link as well. It seems to a hack like panelOnDestroyCallback, which was deprecated after some releases. – Rajendra Singh Nagar Feb 20 '20 at 12:14
  • There is no such official Documentation link but I found that on one of the solution of Salesforce Ideas and it working fine. – Vikrant Sharma Mar 26 '20 at 16:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.