Chat.setVisibility()

This API lets you toggle the function of various components in Mobilisten.

Note:
The settings for the components are taken into consideration only if their function is enabled in portal settings.

ChatComponentFunctionDefault Setting
PRE_CHAT_FORMUsed to enable/disable the pre-chat form before starting a chat.enabled
OPERATOR_IMAGEUsed to enable/disable attender's profile image in the chat window.enabled
VISITOR_NAMEUsed to configure the visibility of the visitor's name for all outgoing messages.disabled
SCREENSHOTUsed to enable/disable the ability to take screenshots from the add attachments menu.enabled
RATINGUsed to enable/disable the option to rate a chat after it is ended.enabled
FEEDBACKUsed to enable/disable the option to give feedback after a chat is ended.enabled
EMAIL_TRANSCRIPTUsed to enable/disable the email transcript option after chat ends.enabled
FILE_SHAREUsed to enable/disable the option to share files in the chat window.enabled
ENDUsed to show/hide the end chat option always(This has the highest priority over the below configurations).enabled
END_WHENBOT_CONNECTEDUsed to show/hide the end chat option only for the bot connected chats.enabled
END_WHEN_OPERATOR_CONNECTEDUsed to show/hide the end chat option only for the chats that are connected to the operator.enabled
END_WHEN_IN_QUEUEUsed to show/hide the end chat option only when the chat is in queue.enabled
REOPENUsed to show/hide the reopen chat button in the chat window.enabled

 

 

 

Syntax:

CopiedZohoSalesIQ.Chat.setVisibility(ZSIQChatComponent chatComponent, boolean visibility);

Example:

CopiedZohoSalesIQ.Chat.setVisibility(ZSIQChatComponent.OPERATOR_IMAGE, true/false);