Skip to content

Instantly share code, notes, and snippets.

@anilsomasundaran
Created June 17, 2018 14:43
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 anilsomasundaran/e627e319f9afaed448ae1b79f8e262cc to your computer and use it in GitHub Desktop.
Save anilsomasundaran/e627e319f9afaed448ae1b79f8e262cc to your computer and use it in GitHub Desktop.
<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" >
<aura:attribute name="contactFields" type="String[]" default="Course_Name__c,Course_Fee__c,Course_Start_Date__c,Completion_Date__c,Course_Description__c"/>
<lightning:recordForm
objectApiName="Course__c"
fields="{!v.contactFields}"
columns="2"
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