I am facing an issue in lightning where force:inputfield is not rendering at all. Here is the code:
<aura:component implements="force:appHostable,force:lightningQuickActionWithoutHeader,force:hasRecordId" >
<aura:attribute name="newBPTask" type="Cost_Authorization__c"
default="{ 'sobjectType': 'Cost_Authorization__c',
'Name': '',
'Pending_Approval_Amount__c' : 0
}"/>
<!-- Input Form using components -->
<div class="container">
<form>
<force:outputField value="{!v.newBPTask.Pending_Approval_Amount__c}"/>
<force:inputField aura:id="RequestBudget" value="{!v.newBPTask.Pending_Approval_Amount__c}" required="true"/>
</form>
</div><!-- ./container-->
</aura:component>
I am sure I am doing a silly mistake but could not find. Could anyone look into this and suggest?
<label>or<div>tags? I've always avoided using those<force:outputField>and<force:inputField>because they have caused some issues. – akcorp2003 Mar 06 '17 at 16:03