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
sunny sengar 17sunny sengar 17 

How can create a record if master-detail relationship field is present on child object in Lightning Component?

PriyaPriya (Salesforce Developers) 
Hi Sunny,

Check below example that matches your requirement :- https://salesforce.stackexchange.com/questions/211600/lighningrecordeditform-not-able-to-create-a-record-if-master-detail-relations
 

Please mark as Best Answer so that it can help others in the future.

Regards,

Priya Ranjan