.setUserEmail()
(Last Updated On: June 25, 2013)
Overview

Provide a Visitor’s email address to SnapEngage. This will do two things: First, it pre-populates the “email” input field on your “Pre-Chat Form” (if you are using one); Second, even if you are not using a “Pre-Chat” form, SnapEngage can still provide a Visitor’s email address to an Agent who takes a chat.


Parameters


email
Type
String | (Required)
A non-encoded email address — i.e. “invalid@example.com”
Description
You will need to use your local environment to deliver the email address to this function, either through server-side scripting or JavaScript.

locked
Type
Boolean | (Optional) (default: false)
Description
Should the email field be read-only?
That is: a visitor with a predefined email address will not be able to alter that address in the Pre-chat Form.