You need to sign in to do that
Don't have an account?
Rajnisf
Pre fill contact fields on lightning component in public site/community for guest user
Hi,
My requirement is to gather contact information with files upload on public site (using guest user).
1. My question is can we pre fill the form for guest users if data already exists in salesforce for example if user's first name, last name and email matches with existing data form pre fill rest of the foelds in form (lightning component)
2. File upload -- Lightning:Fileupload doesnot work if we don't have parent id (contact id). any insight on this? or i am thinking of using two pages on first create record and then get the contact id of just created record and pass it as a parent it to files on next page.
Hope i am able to explain.
My requirement is to gather contact information with files upload on public site (using guest user).
1. My question is can we pre fill the form for guest users if data already exists in salesforce for example if user's first name, last name and email matches with existing data form pre fill rest of the foelds in form (lightning component)
2. File upload -- Lightning:Fileupload doesnot work if we don't have parent id (contact id). any insight on this? or i am thinking of using two pages on first create record and then get the contact id of just created record and pass it as a parent it to files on next page.
Hope i am able to explain.
PFB points to help with your answers:
1.) Yes, you can check for the userInfo and fill up the form with doInit method
2.) Yes, Lightning:Fileupload requires parentId, and your solution would meet your requiremnets but mind below points:
Danish - i want this to be a public site that any person can fill the information and will not be a sf user/community user. do you think pre fill is possible in that case? i might be asking the same question