1

Is there a possibility to get the Label of current field using aura:iteration ?

<aura:iteration items="{!v.objectName}" var="objectName"> 
     <lightning:input value="{!objectName.field1}" label="{!objectName.field1.Name}"/> 
     ....
</aura:iteration>

I checked the variations like label="{!objectName.field1.Name}" and label="{!objectName.field1.Label}".

I add that the field values display correctly.

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.