onEmailChatError ( data )

Is triggered when the visitor sends the chat to their own email address.

The "data" object is passed as an argument, containing the following properties:

PropertyTypeDescription
error string Possible values:
"invalid address" - Incorrect email handle specified

Examples

  1. Using jQuery
    $(document).on("netroxemailchaterror", function(event, data) {
        if (data.error == "invalid address") {
            // Your actions prior to email error
            alert('not sent due to incorrect email handle');
        }
    });       
  2. Using the nsc_API object
    nsc_API = { /* ... */ };
    
    nsc_API.onEmailChatError = function(data) {
        if (data.error == "invalid address") {
            // Your actions prior to email error
            alert('not sent due to incorrect email handle');
        }
    };        

All rights reserved. Copyright © 2017 Netrox SC
Host CMS