5 views

Overview


This article will address the question about the possibility of setting up Anonymous Chat with a service portal other than the Consumer Service Portal (/csp) which is where the Anonymous Chat functionality works by default.

 

Information


Anonymous Chat was built for the Consumer Service Portal and is only supported in that environment.

It was never the intention to have it used in other portals and therefore is not a ServiceNow supported configuration when used there.

 

Additional Information 


If you choose to try and copy the setup of Anonymous Chat in a different portal it is defined in the header of the /csp portal.

  

This is the out-of-box record which contains the code: 
/sp_header_footer.do?sys_id=451ffe6e3b103200367aee1234efc415 

Here is the function within the client script: 
$scope.openAnonymousChatPopUp = function() { 
var url = "com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=2ee88dafdb416200f6c270f5bf9619cf&sysparm_domain_restore=false&sysparm_stack=no&sysparm_queue_id=3a40c019c333120071d07bfaa2d3ae17"; 
popupCenter (url, "chat_popup", 650, 580); 
}; 

Here is the HTML: 
<li ng-if="(!user.logged_in && isCSPPortal() && page.id != portal.login_page_dv)" class="hidden-xs"> 
<a href ng-click="openAnonymousChatPopUp()" aria-label="${Live Chat}"><i class="fa fa-comment"/></a> 
</li> 

 

As mentioned before, adding this to another portal may not function exactly as the Anonymous Chat plugin.

Article Information

Last Updated:2018-07-11 08:37:20
Published:2018-07-11