You need to sign in to do that
Don't have an account?
Ajinkya Deshmukh 16
Navigation for e.force:createRecord
To create a new record, we used the following code:
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.
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.