Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 14, 2018 06:13
Show Gist options
  • Save simpluslabs/6d18de6a9c9522bcd6a6a146575cfc2e to your computer and use it in GitHub Desktop.
Save simpluslabs/6d18de6a9c9522bcd6a6a146575cfc2e to your computer and use it in GitHub Desktop.
<aura:component>
<!--lightningRecFormComp-->
<aura:attribute name="recordId" type="String" default="0037F000013NrfqQAC"/>
<aura:attribute name="myContact" type="List" default="[Name,Email]" />
<lightning:recordForm
recordId="{!v.recordId}"
objectApiName="Contact"
layoutType="Compact"
fields="{!v.myContact}"
columns="1"
mode="edit"
onsubmit="{!c.handleSubmit}" />
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment