You need to sign in to do that
Don't have an account?
Lucas Isla
How do I select specific fields to show in e.force:createRecord event?
Hi,
I'm trying to fire a lightning force:createRecord event on a button click, but I only want to show certain fields on the creation form.
Is there a parameter I can add to the following code to specify these fields?
I'm trying to fire a lightning force:createRecord event on a button click, but I only want to show certain fields on the creation form.
Is there a parameter I can add to the following code to specify these fields?
var createRecordEvent = $A.get('e.force:createRecord'); createRecordEvent.setParams({ 'entityApiName' : 'CMC_Manifest_Item__c', 'defaultFieldValues': { 'Issue__c': component.get("v.issue.Id") } }); createRecordEvent.fire();
https://developer.salesforce.com/docs/component-library/bundle/force:createRecord/specification.
All Answers
https://developer.salesforce.com/docs/component-library/bundle/force:createRecord/specification.