function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vinod ChoudharyVinod Choudhary 

How to populate web to case contact name field

I am using Web to case HTML on my VF page. 
When a logged-in user submits that form a case is initiated automatically.

But the fields on Case "Account Name" and "Contact Name" is not populating.

I want to populate "Contact Name" field with the logged-in user who submits the case from VF page.

i have populated the "Web Email" field already.
Best Answer chosen by Vinod Choudhary
Vinod ChoudharyVinod Choudhary
Just Passed the Contact id from my VF page and it get resolved :)

All Answers

Raj VakatiRaj Vakati
Please refer this link 
https://developer.salesforce.com/forums/?id=906F0000000g09HIAQ
https://success.salesforce.com/answers?id=90630000000hvfHAAQ
 
Amit Singh 1Amit Singh 1
Hi Vinod,

The contact name will be populated automatically if Contact is Existing with the "Web Email" into Salesforce otherwise it will be blank. If you wanted to populate the contact that is not existing then you have to do some customization using apex trigger.

Refer below link 
https://developer.salesforce.com/page/Autocreating_Contacts_From_Web_To_Case

Regards,
Amit
Vinod ChoudharyVinod Choudhary
Thank you Amit :)
Vinod ChoudharyVinod Choudhary
Just Passed the Contact id from my VF page and it get resolved :)
This was selected as the best answer