Home > Set the email address for pre-chat form or start of chat
(Last Updated On: August 4, 2021)
About This Article
The purpose of this article is to provide a comprehensive overview of how to pre set an email address for pre-chat forms or the start of a chat.
Next, add the call below to your SnapEngage API section of your code snippet ( Below line that states * Place your SnapEngage JS API code below *):
This will then take the action to pre-populate the pre-chat email address line or pass along the email of the visitor to the agent at the start of the chat.
Now… If you would like to have the pre-set email address read only for the user (in which the user will not be able to modify it), you can add the 2nd parameter to true, as shown below.
SnapEngage.setUserEmail('[email protected]', true);
Published January 12, 2012