Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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
You can’t perform that action at this time.