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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Omnichannel hide custom chat button by operating hours

(0) ShareShare
ReportReport
Posted on by 10

Dear all

we  hide the standard lcw chat button usining the parameter data-hide-chat-button="true" and replace it with another custom.

We need to hide the custom button, as the standard does, depending on the operating hours set in the chat widget.

How can I do? Are there web services to call to get the opening status?

Thanks 

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi partner,

    So you have set custom chat widget as following link?

    Customize live chat widgets for mobile apps | Microsoft Docs

    Regards,

    Leah Ju

  • alberto.gatti@hudi.it Profile Picture
    10 on at

    We didn't realize a mobile app, but simply use the standard  widget code snippet into a web site.

    <script id="Microsoft_Omnichannel_LCWidget" src="<valid-src>" data-app-id="<valid-app-id>" data-org-id="<valid-org-id>" data-org-url="<valid-org-url>" data-hide-chat-button="true"></script>

    Then we use window.addEventListener  to manage the event available from SDK (lcw:ready, lcw:error, ...) but we don't know how to hide our custom button depending on the operating hours

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

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 45 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans