function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ajinkya Deshmukh 16Ajinkya Deshmukh 16 

Navigation for e.force:createRecord

To create a new record, we used the following code:
var createRecordEvent = $A.get('e.force:createRecord'); 
createRecordEvent.setParams({ 
'entityApiName': 'CustomObject__c'
 }); 
createRecordEvent.fire();


We have called this code from the button on the component.
When the record is saved, the create record popup closes and the page is navigated to the record details page.
Requirement: On saving of the record, the component page should stay open and don't want to navigate to the record details page. Also, the record details table on the component should get refreshed.
Please suggest a solution.