Create Parent and Child record along with file in single LWC Screen
This scenario has been designed for developer who possess Intermediate skills in Lightning Web Component.
- Create a Lightning Web Component
- Create form to create account, contact related to same account and upload a file from single screen
- Add below input fields:-
- Account Name
- Contact First Name
- Contact Last Name
- Contact Email
- Account WebSite
- Contact phone Number
- Add a file input so that user can upload the file from local system
- Add buttons in footer section –
- Save and new
- When clicked on Save, It should take you to newly created contact record page
- When clicked Save and New, Save the record and open a new form
- When clicked on cancel, form field value should be cleared
Do you need help?
Are you stuck while working on this requirement? Do you want to get review of your solution? Now, you can book dedicated 1:1 with me on Lightning Web Component completely free.
GET IN TOUCH
Schedule a 1:1 Meeting with me
Also check out https://salesforcediaries.com/category/lightning-web-com