I have 2 child components in a wizard the first on the first page the second on the second page. I pass a recordtype Id from the first component to the second component trough an event how do I pass this to the recordEditForm on Init for the second component. Currently I get an error : expected to get a string for recordTypeId but instead got null
Component
<lightning:recordEditForm aura:id="form"
recordId="{!v.recordId}"
objectApiName="{!v.genericObject}"
recordTypeId= "{!v.Id}"
onsubmit="{!c.next}"
>
Event
getRecordtypeId: function(component, event, helper) {
var RecTypeId = event.getParam("Id");
console.log('The Id is: ' + RecTypeId);
component.set("v.Id",RecTypeId);
},