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
Mrinal Sharma 23Mrinal Sharma 23 

How to Pre-populate Lookup field in lightning:recordeditform when creating new record?

I am creating new record using <lightning:recordEditForm>  and i am not able to populate lookup field onload finction. 
I tried below things but both are not working: 
1.
<lightning:inputField aura:id="caseLookup" type='String' fieldName ="Case__c" value="00842156"/>
2.
<lightning:inputField aura:id="caseLookup" fieldName ="Case__c"/>
Controller: 
onload : function(component, event, helper) { var parentId = component.get("v.parentId"); // requires inputFields to have aura:id component.find("caseLookup").set("v.value", "00842156"); },
Please help me here, I can do it using custom component but i want to use this. Or let me know if i can use something else to create new record of any object. 
johnson eaterjohnson eater
dqfansurvey (https://dqfansurveyyy.xyz/)  Please help me here, I can do it using custom component but i