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
Sapana JSapana J 

How to auto submit pre chat form while using Embedded Chat?

I am using Embedded Chat on nonsalesforce website, I want to read URL parameter and based on that have to find Contact details and if found record have to auto submit pre chat form. How can we acheive this?
AbhishekAbhishek (Salesforce Developers) 
This Blog has code snippet,

https://developer.salesforce.com/forums/?id=906F000000093PuIAI

Try it.

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.
Sapana JSapana J
Hi Abhishek,

Thank you for the reply. I am using Embedded Chat Deployment and through Pre Chat settings in it I am showing Pre Chat form with User Details (I haven't written any custom code to populate pre chat form). It is using embedded_svc.settings prefix before API.

It will be great if you could help me in achieve the same within Embedded Chat Deployment.

Thank you in advance.
Sapana JSapana J
Can someone please help me out? It's little urgent.