Recent searches
No recent searches
custom launcher alternative text is missing
Posted Jul 31, 2024
When I create a new web widget via the messaging and social menu, I can also add an alternative text in the style > launcher section.
However, this message disappears from my website if I use a custom launcher instead of a default one.
I create my custom launcher using the provided API (https://developer.zendesk.com/api-reference/widget-messaging/web/core/#open) but I don't see in the documentation any way to add the alternative message to the custom launcher.
Currently, on my webpage, I have only the snippet to include the widget plus the javascript required to open the chat on the click:
const conversationBadge = document.querySelector('#conversation-badge');
// on page load always close widget
zE('messenger', 'close');
conversationBadge.onclick = () => {
// open widget
zE('messenger', 'open');
}
what do I have to add to have the alternative text displayed as well ?
Thanks
0
3 comments
Anastasiya Kastsiushkina
Hello!
Thank you so much for taking the time to provide us with your feedback. Unfortunately, using the API to open/close the widget means you won’t be using the default button and its associated features. To include alternative text or customize the button in any way, you would need to integrate it into your custom implementation. Here are some examples of what you can do.
Best regards,
Anastasiya
0
lucia digirolamo
“To include alternative text or customize the button in any way, you would need to integrate it into your custom implementation”
It means that I cannot use the text provided by the zendesk interface, so I cannot use that field, I have to write my text directly on my website, have I understood it correctly?
0
Anastasiya Kastsiushkina
Hello lucia digirolamo!
Sorry for the late reply ― yes, it is not possible to use the text provided by the Zendesk interface, you would need to add it in the code of the custom launcher itself.
Let me know if you have any questions!
Best,
Anastasiya
0