Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Invoking the hidden Chat Inlay

edited Dec 18, 2019 11:20PM in Digital Customer Service 11 comments

Summary

When trying to invoke the hidden Chat Inlay, the chat window will not open

Content

Please look at the invokeChat() method and let us know what is wrong with it as it’s not opening the chat.  What element should have the event dispatched to?


<script id="oit-loader" src="http://static-mw.custhelp.com/s/oit/latest/common/v0/libs/oit/loader.js&quot; async></script>         
<div style="border:1px solid red; height:50px;">
    <h6>
        <a href="javascript:invokeChat()">Click to Chat</a>
    </h6>

<script>
function invokeChat() {
                var event = new Event('inlay-oracle-chat-embedded-show');
                var elem = document.getElementById("chatInlay");
                elem.dispatchEvent(event);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!