Online Chat  
Offline Chat
                                     I can see the button but it doesnt do anything or change based on the Agent being online or offline", "upvoteCount": 0, "url": "https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A7YBYSA3", "datePublished": "2017-02-22T10:15:19.000Z", "author": { "@type": "Person", "name": "Olivia Forde", "url": "https://trailblazers.salesforce.com/profileView?u=005300000095IlTAAU", "affiliation": { "@type": "Organization", "name": "Lifes2good" } } } ] } }
Skip to main content
What is the link between the Online Status on the Live Agent Console and my website Chat button. I can only see teh button as Offline regardless of whether teh agent is online or offline
1 Antwort
  1. 22. Feb. 2017, 10:15
    This is what i have on my wen page

     

    <!-- Online Chat [class="button buttonchat chaton"]  [class="button buttonchat chatoff"]  -->

     

    <script type='text/javascript' src='https://c.la3-c1-was.salesforceliveagent.com/content/g/js/34.0/deployment.js'></script>

     

    <script type='text/javascript'>

     

    liveagent.init('https://d.la3-c1-was.salesforceliveagent.com/chat', '572o0000000L5LT', '00Do0000000XzpL');

     

    </script>

     

    <a class="button buttonchat chaton" id="liveagent_button_online_5730J0000008PzM" href="javascript://Chat" style="display: none;" 

     

    onclick="liveagent.startChat('5730J0000008PzM')">Online Chat </a>

     

    <div id="liveagent_button_offline_5730J0000008PzM" style="display: none;" class="button buttonchat chatoff">Offline Chat </div>

     

    <script type="text/javascript">

     

    if (!window._laq) { window._laq = []; }

     

    window._laq.push(function(){liveagent.showWhenOnline('5730J0000008PzM', document.getElementById('liveagent_button_online_5730J0000008PzM'));

     

    liveagent.showWhenOffline('5730J0000008PzM', document.getElementById('liveagent_button_offline_5730J0000008PzM'));

     

    });</script>

     

    <!-- end Online Chat -->

     

                                

     

    I can see the button but it doesnt do anything or change based on the Agent being online or offline
0/9000