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
prechatForm

Used to enable/disable the pre-chat form before starting a chat

enabled
voiceMessage

Used to enable/disable option to record and send voice messages in chat.​

disabled

operatorImage

Used to enable/disable attender's profile image in chat window.enabled
visitorName

This option is used to configure the visibility of the visitor's name for all outgoing messages

disabled

screenshot

Used to enable/disable the ability to take screenshots from the add attachments menu

enabled
rating

Used to enable/disable the option to rate a chat after it is ended

enabled
feedback

Used to enable/disable the option to give feedback after a chat is ended.

enabled
emailTranscript

Used to enable/disable the email transcript option after chat ends

enabled
fileShare

Used to enable/disable the option to share files in the chat window

enabled

 

 

 

Syntax:

CopiedZohoSalesIQ.Chat.setVisibility(ChatComponent component,boolean visibility)

Example 1: Operator profile picture

CopiedZohoSalesIQ.Chat.setVisibility(ChatComponent.operatorImage,true)