Lightning Component:
<!--Sample.cmp--> <aura:component implements="flexipage:availableForAllPageTypes,force:appHostable"> <!--Component Start--> <div class="slds-m-around_xx-large"> <lightning:recordEditForm recordId="5000I000016VCzL" objectApiName="Case"> <lightning:messages /> <lightning:inputField fieldName="AccountId"/> <lightning:inputField fieldName="ContactId"/> <lightning:inputField fieldName="Origin" /> <lightning:inputField fieldName="Status" /> <lightning:inputField fieldName="Priority" /> <lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update" /> </lightning:recordEditForm> </div> <!--Component End--> </aura:component>