There is no setting for the lightning:inputField to make it required.
idea: https://success.salesforce.com/ideaView?id=0873A000000lKNbQAM docs: https://developer.salesforce.com/docs/component-library/bundle/lightning:inputField/specification
My lightning component is dynamic with all of the fields being passed through. I cannot find a way to make required fields required.
<lightning:recordEditForm objectApiName="{! v.sObjectName }"
recordId="{! v.recordId }"
recordTypeId="{! v.recordTypeId }"
class="slds-card slds-p-around_medium"
onsuccess="{! c.onsuccess }"
onsubmit="{!c.handleSubmit}"
>
<aura:iteration items="{! column.Fields }" var="field">
<lightning:inputField fieldName="{! field.APIName }" class="{!'slds-p-top_small slds-m-top_medium '+field.Behaviour}" disabled="{! field.Behaviour=='Readonly'}" />
</aura:iteration>
</lightning:recordEditForm>
Any ideas on how to make an onsubmit function that can loop through N number of input fields and make them required?