Maintenance Notice - PDF Generation
Dynamic PDF generation for web-based content is temporarily unavailable. This maintenance affects dynamic PDF files that are generated from either the HTML-based page or manual that you are viewing. Links that normally allow this functionality have been hidden, and will reappear as soon as the feature is restored.


Note: Access to static files, including PDF files that are not dynamically generated from our web-based content, is unaffected.

Jump to: navigation, search

onBeforeChatOptionsApplied(callback)

Description

Important
This method may not be available in older versions of chat shipped with Genesys Co-browse 8.1 and Genesys Web Engagement 8.1.

Use this method to modify options before the chat starts or restores. This method may be useful if you do not control the startChat() call but still need to control some of the options. For example, you can use this method when you use chat as part of the Integrated JavaScript Application.

Example

_genesys.chat.onReady.push(function(chat) {
  chat.onBeforeChatOptionsApplied(function(options) {
    // you can modify options object here, for example:
    if (userIsAuthorized) {
      options.registration = false;
    }
  });
});
This page was last edited on February 24, 2016, at 00:43.

Feedback

Comment on this article:

blog comments powered by Disqus