You need to sign in to do that
Don't have an account?

Prepopulate Account name when creating contact using Lightning Component
I have created a lightning component form to insert Contact record which is having Account Name, First Name, Last Name, Email and all the necessary form fields.
I've overridden the Contact object "New" button with this lightning component.
Consider am currently on the Account Detail page, and scrolling down to click on New button of the contact related list. Now, when the lightning component form is loading, the account name from which I redirected should be populated automatically.
This can be easily done in button if the content type is URL. But how do we achieve the same in lightning component content type?
Any ideas would be appreciated. Thanks!.
I've overridden the Contact object "New" button with this lightning component.
Consider am currently on the Account Detail page, and scrolling down to click on New button of the contact related list. Now, when the lightning component form is loading, the account name from which I redirected should be populated automatically.
This can be easily done in button if the content type is URL. But how do we achieve the same in lightning component content type?
Any ideas would be appreciated. Thanks!.
You can refer my code to create a related contact on account related page.Here I made it for First name and Last Name only. Please make it as Best answer if i solves your issue.
Does any one resolve this use case ?
Thanks !