Salesforce Lightning Aura Component

Salesforce

How to reset lightning:recordEditForm and get also get record id in Salesforce?

Sample Code: Component: <aura:component implements="force:appHostable" > <lightning:card> <lightning:recordEditForm aura:id="recordEditForm" objectApiName="Lead" onsubmit="{!c.handleSubmit}" onsuccess="{!c.handleSuccess}"> <lightning:messages /> <lightning:inputField aura:id="field" fieldName="FirstName" /> <lightning:inputField aura:id="field" fieldName="LastName" /> <lightning:inputField aura:id="field" fieldName="Email" /> <lightning:inputField aura:id="field" fieldName="Phone" /> ....

Salesforce

How to pass values from lightning:recordEditForm to apex class in Salesforce?

Sample Code: CMP: <aura:component implements="force:appHostable" controller="SampleAuraController">     <lightning:card>         <lightning:recordEditForm aura:id="recordEditForm" objectApiName="Lead" onsubmit="{!c.doSubmit}">             <lightning:messages />             <lightning:inputField fieldName="FirstName" />             <lightning:inputField fieldName="LastName" />             <lightning:inputField fieldName="Email" />             <lightning:inputField ....