Lightning RecordForm - An enhanced Lightning Data Service
As always with every release Salesforce introduces bunch of new base components and this time they have "Lightning: recordForm" which suppresses using "lightning:recordEditForm and lightning:recordViewForm" separately to handle record view and edit. Lets go ahead and put some sample code to create a Lightning Component using lightning recordForm! RecordFormComp.cmp: <aura:component implements= "force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasSObjectName,force:hasRecordId,force:lightningQuickAction" access= "global" > <aura:attribute name= "fieldsList" type = "String[]" default= "['Id', 'Name', 'BillingAddress', 'AnnualRevenue']" /> <div> <center> <h1><b>Lightning Record Form<br/> Object_Name: { ! v.sObjectName} - Record_Id: { ! v.recordId} ...