<lightning:recordEditForm aura:id="recordEditForm"
                              onsuccess="{! c.successrecord }"
        <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1">

            <lightning:messages />
            <lightning:inputField fieldName="ParentRecordId" required="true" />
            <lightning:inputField fieldName="Product2Id" required="true"/>
            <lightning:inputField fieldName="QuantityRequired" />
            <lightning:inputField fieldName="QuantityUnitOfMeasure" />

        <footer class="slds-modal__footer">
            <lightning:button  type="submit" label="Next"  />

My form of new required product

I want there to be no choice, but only Work Type, maybe someone know how i can solve this problem

ParentRecordId is a master-detail relationship to Work type, Work order, Work order line

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.