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

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: "[email protected]"
        };

Output:

Leave a Reply