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 |
PRE_CHAT_FORM | Used to enable/disable the pre-chat form before starting a chat. | enabled |
OPERATOR_IMAGE | Used to enable/disable attender's profile image in the chat window. | enabled |
VISITOR_NAME | 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 |
EMAIL_TRANSCRIPT | Used to enable/disable the email transcript option after chat ends. | enabled |
FILE_SHARE | 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 |
END_WHENBOT_CONNECTED | Used to show/hide the end chat option only for the bot connected chats. | enabled |
END_WHEN_OPERATOR_CONNECTED | Used to show/hide the end chat option only for the chats that are connected to the operator. | enabled |
END_WHEN_IN_QUEUE | Used to show/hide the end chat option only when the chat is in queue. | enabled |
REOPEN | Used 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);