Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Unanswered

Omnichannel hide custom chat button by operating hours

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 

  • RE: Omnichannel hide custom chat button by operating hours

    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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Omnichannel hide custom chat button by operating hours

    Hi partner,

    So you have set custom chat widget as following link?

    Customize live chat widgets for mobile apps | Microsoft Docs

    Regards,

    Leah Ju

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans