Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<aura:component controller="ContactController">
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<aura:attribute name="contact" type="Contact" default="{ 'sobjectType': 'Contact' }"/>
<p>
<strong>force input field</strong><br/>
Id: <force:inputField value="{!v.contact.Id}"/><br/>
Name: <force:inputField value="{!v.contact.LastName}"/><br/>
CleanStatus: <force:inputField value="{!v.contact.CleanStatus}"/>
</p>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.