.chatbutton.texts()
This API lets you customize the pre-defined system messages that are to be displayed on the chat widget(Only applicable for float and button chat widgets).
PARAMETERS
ONLINE MESSAGE: First line that is to be displayed beside the chat button when it is online.
OFFLINE MESSAGE: First line that is to be displayed beside the chat button when it is offline.
Online: Second line that is to be displayed beside the chat button when it is online.
Offline: Second line that is to be displayed beside the chat button when it is offline.
Note:
Do remember that if you opt to use float chat widget, there wouldn't be an option for you to set two liners, you can specify only a single line text.
Syntax
Copied$zoho.salesiq.chatbutton.texts([[" < ONLINE MESSAGE > ", "<Online>"], [" < OFFLINE MESSAGE > ", "<Offline>"]]);
Example
Copied<script>
$zoho.salesiq.ready=function()
{
$zoho.salesiq.chatbutton.texts([["Hello, How can i help you ?", "Online"], ["Leave your message", "Offline"]]);
}
</script>