Home > Set the email address for pre-chat form or start of chat
(Last Updated On: July 30, 2018)
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