.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


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

Example 1: Operator profile picture


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

                                                                                                                                                                                              

Example 2: Session rating


				ZohoSalesIQ.Chat.setVisibility(ChatComponent.rating,true)			

                                                                                                                                                                                              

Example 3: Session feedback


				ZohoSalesIQ.Chat.setVisibility(ChatComponent.feedback,true)			

                                                                                                                                                                                             

Example 4: Screenshot


				ZohoSalesIQ.Chat.setVisibility(ChatComponent.screenshot,true)			

Example 5: Visitor Name


				ZohoSalesIQ.Chat.setVisibility(ChatComponent.visitorName,true)			

Example 6: Pre-chat form


				ZohoSalesIQ.Chat.setVisibility(ChatComponent.prechatForm,true)			

Example 7: Voice Message


				ZohoSalesIQ.Chat.setVisibility(ChatComponent.voiceMessage,true)			

Example 8: Email Transcript


				ZohoSalesIQ.Chat.setVisibility(ChatComponent.emailTranscript,true)			

Example 9: File Share


				ZohoSalesIQ.Chat.setVisibility(ChatComponent.fileShare,true)