February 5, 2021

How to pre-populate Pre-Chat Form Fields in Salesforce Embedded Service Chat?

prepopulatedPrechatFields attribute can be used to pre-populate Pre-Chat Form Fields in Salesforce Embedded Service Chat.

Sample Code:
         embedded_svc.settings.prepopulatedPrechatFields = {
            FirstName: "Magulan",
            LastName: "Duraipandian",
            Email: "magulandemo@infallibletechie.com"
        };
 
Output:
 

 

No comments:

Post a Comment