I have a fieldset which I get from serverside and load on clientside I am adding the required parameter to the field but my component does not alert on required. I added the values behind the fields and these have the correct value. What am I missing?
<aura:iteration items="{!v.fields}" var="field" >
<aura:if isTrue="{!v.inputModeBool == true? true: false}">
<lightning:inputField fieldName="{!field.fieldPath}" required="{!field.required}"/>{!field.required}
</aura:if>
<aura:if isTrue="{!v.inputModeBool != true? true: false}">
<lightning:layout >
<lightning:layoutitem size="10">
<lightning:outputField fieldName="{!field.fieldPath}"/>
</lightning:layoutitem>
<lightning:layoutitem size="2">
<lightning:buttonIcon iconName="utility:edit" variant="bare"
alternativeText="edit"
onclick="{!c.handleToggle}"/>
</lightning:layoutitem>
</lightning:layout>
</aura:if>
</aura:iteration>