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.
ChatComponent | Function | Default Setting |
prechatForm | Used to enable/disable the pre-chat form before starting a chat. | enabled |
operatorImage | Used to enable/disable attender's profile image in the chat window. | enabled |
visitorName | 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 |
end | Used to show/hide the end chat option always(This has the highest priority over the below configurations). | enabled |
endWhenBotConnected | Used to show/hide the end chat option only for the bot connected chats. | enabled |
endWhenOperatorConnected | Used to show/hide the end chat option only for the chats that are connected to the operator. | enabled |
endWhenInQueue | Used to show/hide the end chat option only when the chat is in queue. | enabled |
reopenChat | Used to show/hide the reopen chat button in the chat window. | enabled |
queuePosition | Used to show/hide the queue position of the chat in chat window and conversation history. | enabled |
Syntax:
CopiedZohoSalesIQ.Chat.setVisibility(ChatComponent component, boolean visibility)
Example:
CopiedZohoSalesIQ.Chat.setVisibility(ChatComponent.operatorImage, true)