Hi I am trying to get look and feel of standard field in the lightning component, but I can't find any ways of doing that. When I am trying to use force:inputField, it is not even displaying any field.

Here is what I am trying

 <aura:attribute name="customObject" type="CustomObject__c" default="{ 'sobjectType': 'CustomObject__c'}"/>
 <force:inputField aura:id="contactName" value="{!v.customObject.Status__c}"/>

To make force:inputField working, first need to disable lightning debug

And for more detail this link will help Lightning Component initialization after redirect

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.