5

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
  • 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
1

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

0

You can use "navigationLocation":LOOKUP.

Below is the Code, It might help you :

 // Add this below line in the function
    var LOOKUP = 'LOOKUP'; 
    createRecordEvent.setParams({
    "entityApiName": entityApiName,
     "recordTypeId": recordTypeId,
    // Add the below line
      "navigationLocation":LOOKUP
      // Add the above line
         });

     createRecordEvent.fire();
2
  • 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.