Skip to content

Instantly share code, notes, and snippets.

@amitkumarRoy
Last active July 19, 2018 10:28
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 amitkumarRoy/c13606287e5170d8be761a39bd037b5f to your computer and use it in GitHub Desktop.
Save amitkumarRoy/c13606287e5170d8be761a39bd037b5f to your computer and use it in GitHub Desktop.
<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global">
<aura:attribute name="fieldsArray" type="String[]"
default="['Name','Email','Phone','AccountId']" />
<aura:attribute name='recordId' type="Id" />
<lightning:recordForm aura:id="recordForm"
recordId="{!v.recordId}"
objectApiName="Contact"
fields="{!v.fieldsArray}"
mode="view"
/>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment