You need to sign in to do that
Don't have an account?
Tulasiram Chippala
How to pass default values to create a record in LWC
Hi all.
1. I have a requirement to open Task page to create a task with some default values in LWC.
How below code works in LWC
createAcountContactEvent.setParams({ "entityApiName": "Contact", "defaultFieldValues": { 'Phone' : '415-240-6590', 'AccountId' : '001xxxxxxxxxxxxxxx' }
2. How below URL works in LWC
'"/lightning/cmp/c__URL_CreateRecordCmp?objectName=Contact&FirstName=Astro&LastName=Nomical&AccountId={!Account.Id}"'
I used above URL, but not able to find a solution because i am getting this page is not available in Lightning or something.
Please help me on this.
1. I have a requirement to open Task page to create a task with some default values in LWC.
How below code works in LWC
createAcountContactEvent.setParams({ "entityApiName": "Contact", "defaultFieldValues": { 'Phone' : '415-240-6590', 'AccountId' : '001xxxxxxxxxxxxxxx' }
2. How below URL works in LWC
'"/lightning/cmp/c__URL_CreateRecordCmp?objectName=Contact&FirstName=Astro&LastName=Nomical&AccountId={!Account.Id}"'
I used above URL, but not able to find a solution because i am getting this page is not available in Lightning or something.
Please help me on this.