The Exit survey will be displayed after the chat has ended if one was configured for the account.

Notes:

Request

Properties

Value Description Type Required Notes
surveyName A specific survey for which the name is known. string Optional Otherwise the server will determine the appropriate survey.
surveyApiId A specific survey ID you know on the server. string Optional  

Sample code

var failedRequest = myChat.getExitSurvey({
    success: myChat.handleExitSurvey,
    error: myChat.noSurveyRecieved,
    context: myChat
});

if (failedRequest && failedRequest.error) {
    alert(failedRequest.error);
}