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: