Revision as of 17:56, June 14, 2016 by Bfriend (talk | contribs) (Configuration)
Jump to: navigation, search

Configuration

Description

CXSendMessage and SendMessageService share the configuration namespace '_genesys.cxwidget.sendmessage'. CXSendMessage has UI options while SendMessageService has connection options.

Example

window._genesys.cxwidget.sendmessage = {

	apikey: 'n3eNkgLLgLKXREBMYjGm6lygOHHOK8VA',
	dataURL: 'http://10.0.0.121:7777/genesys/2/email',

	SendMessageButton: {

		enabled: true,
		template: '<div>Email</div>',
		effect: 'fade',
		openDelay: 1000,
		effectDuration: 300,
		hideDuringInvite: true
	}
};

Options

Name Type Description Default Required
formValidation boolean Enable/Disable browser form validations true
SendMessageButton.enabled boolean Enable/Disable Send Message button on screen false
SendMessageButton.template string Custom HTML string template for Send Message button
SendMessageButton.effect string Type of animation effect when revealing Send Message button. 'slide' or 'fade' fade
SendMessageButton.openDelay number Number of milliseconds before displaying chat button on screen 1000
SendMessageButton.effectDuration number Length of animation effect in milliseconds 300
SendMessageButton.hideDuringInvite boolean When auto-invite feature is activated, hide the chat button. When invite is dismissed, reveal the chat button again. true
Comments or questions about this documentation? Contact us for support!