<force:inputField> is not rendering fields on UI when being used inside <aura:iteration> tag or inside nested components in Lightning application
Last updated 2019-01-25 ·Reference W-3597144 ·Reported By 174 users
No Fix
Summary
<force:inputField> is not rendering fields on UI as expected when being used inside <aura:iteration> or inside inner component in Lightning application
Repro
1. Login to your org
2. Try creating a sample lightning application
3. Create a component with below sample code snippet & try to preview the app
4. You will notice the fields doesn't render on the UI as expected.
<aura:component>
<aura:iteration aura:id="iteration" items="{!v.expenses}" var="expenses">
<force:inputField value="{!expenses.Amount__c}"/>
</aura:iteration>
</aura:component>
Workaround
Try using <ui:inputText> or <ui:inputSelect> or <ui:inputCheckbox> instead of <force:inputField> for rendering input fields inside <aura:iteration> or inside inner components
Reported By (174)


























































Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.