I am creating the form using:
<lightning:recordForm
aura:id="data-export-form"
objectApiName="{!v.sObjectName}"
fields="Account__c"
columns="1"
mode="edit"
onsubmit="{!c.export}" />
So i can get the form from the JS controller using:
component.find('data-export-form')
But I can't figure out how to get the value of the one lookup field that is created by this form, Account__c
(defined in the fields
param). Since this form is creating the input it doesn't have an aura:id
, and I can't use vanilla javascript functions like querySelector
in lightning.
Thanks in advance.