You need to sign in to do that
Don't have an account?
Topher Sympson
On e.force:createRecord, can you set the defaultFieldValue for a lookup/Master-Detail field?
On an event I'm attempting to pre-fill a Master-Detail(Account) field on a new custom object record using the e.force:createRecord method.. Is this possible?
I've tried putting in the ID of the account record, the text.. that's it so far..
I've tried putting in the ID of the account record, the text.. that's it so far..
navigateToCreateRecord: function(beNum, stateInput) { let siteIdentifier = `${stateInput}${beNum} - `; var navEvt = $A.get("e.force:createRecord"); navEvt.setParams({ "entityApiName": "Site__c", "defaultFieldValues": { 'Name' : siteIdentifier, 'BE__c' : beNum, 'Shipping_State__c' : stateInput, // Below is field attemping to fill: 'VNT__c' : 'VNT' } }); navEvt.fire(); },Thank you!