Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 13, 2018 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simpluslabs/337e002482a290b2ade95cbdfdef5868 to your computer and use it in GitHub Desktop.
Save simpluslabs/337e002482a290b2ade95cbdfdef5868 to your computer and use it in GitHub Desktop.
<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