I am using multiple Lightning Record Edit Forms in Aura Iteration and wish to uniquely identity the form when onerror is fired
1.Below is my Component.
<aura:iteration items="{!v.episodeList}" var="episode" indexVar="index">
<lightning:recordEditForm onsuccess="{!c.handleSuccess}" onerror="{!c.handleError}" class="form1" aura:id="episodeForm" recordId="{!episode.Id}" objectApiName="Cable_Project_Season_Episodes__c">
</lightning:recordEditForm>
</aura:iteration>
2.Below is my JS
handleError : function(component, event, helper){
console.log(event.target.name);
}
I want to pass {!episode.Id} in name of RecordEditForm so that I can get the same in JS. But name, id, data are not supported by RecordEditForm