web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Omnichannel chat widget how to configure Chat Widget to display bubble after minimising

(3) ShareShare
ReportReport
Posted on by 16
We are using v2 of the Omnichannel Chat Widget and have configured it to open upon clicking a button on our website. We’ve added the "data-hide-chat-button = true" tag to ensure the chat bubble does not display initially.
 
However, we are encountering an issue: if a user minimizes the chat panel, they cannot reopen it without clicking the custom chat button again.
 
Is there a way to:
  1. Retain the "data-hide-chat-button = true" tag so that the chat can only be initiated by clicking the custom chat button, with no chat bubble showing initially.
  2. Display the chat bubble when the user minimizes the chat panel, allowing them to easily reopen the active chat.
Thanks
I have the same question (0)
  • Suggested answer
    Vahid Ghafarpour Profile Picture
    12,204 Super User 2025 Season 2 on at
    You can modify what you want using lcw events in different status lcw:ready, lcw:minimized or lcw:expanded
     
     
     

    ** Please don't forget to close up the thread here by Like and verify it as an answer if it is helpful **

  • Jas09 Profile Picture
    16 on at
    Hi @VaHix

    Thanks, I did look at that but can't work out how to re-enable the Chat Bubble on the event listener for minimise. Do you have an example code for reference or tried this yourself?

    Thanks

    J
  • Suggested answer
    Karthik.Sompalli Profile Picture
    28 on at
    Hi, you can achieve the desired behavior by using JavaScript to manage the visibility of the chat widget when a user minimizes the chat panel. 

    You can follow below Solution:

    1. Keep data-hide-chat-button = true to ensure that the chat bubble does not appear when the page loads, as intended.
    2. Use below custom script to detect when the user minimizes the chat panel and display the chat bubble, allowing them to reopen the chat without needing to click the custom chat button again.
    window.Microsoft.Omnichannel.LiveChatWidget.SDK
        .addEventListener("ChatMinimized", function() {
            // Show the chat bubble when the user minimizes the chat panel
            var chatButton = document.querySelector('[data-hide-chat-button]');
            chatButton.style.display = 'block';
        });
    window.Microsoft.Omnichannel.LiveChatWidget.SDK
        .addEventListener("ChatMaximized", function() {
            // Hide the chat bubble when the chat panel is active
            var chatButton = document.querySelector('[data-hide-chat-button]');
            chatButton.style.display = 'none';
        });
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 38 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 19 Most Valuable Professional

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 13

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans