The New
standard button in the Salesforce is overriden by the Lightning component (Aura).
Now this New button is being used in the multiple places:
In #2, I want the Account lookup field to be populated automatically when clicking on the NEW button. Below is the form that I have built using Lightning component.
My question is that - How do we identify the page where this contact button is getting clicked? With the help of the page reference or if I get the RecordId where the button is clicked, I can populate the Acccount field in the component.
I tried using the document.referrer
but that is not serving me with the intended results that I need.