• Ariel Reem
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi i have a website and would like implement Salesfoce live chat into it.

 

I have configured everything and able to click a button and chat window will prompt.

 

now i wanted the vistor to enter their email & phone before starting the chat so our agent will able to see thier profile. i found the sample code online is using apex. will it possible to be put in HTML?

 

this is button code.

 

<img id="liveagent_button_online_57390000000PN1b" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('57390000000PN1b')" src="https://testitapps.force.com/support/resource/1381204692000/pkb_search_icon" /><img id="liveagent_button_offline_57390000000PN1b" style="display: none; border: 0px none; " src="https://testitapps.force.com/support/resource/1381204692000/pkb_close_icon" />
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('57390000000PN1b', document.getElementById('liveagent_button_online_57390000000PN1b'));
liveagent.showWhenOffline('57390000000PN1b', document.getElementById('liveagent_button_offline_57390000000PN1b'));
});</script>


<script type='text/javascript' src='https://c.la1t1.salesforceliveagent.com/content/g/js/29.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.la1t1.salesforceliveagent.com/chat', '57290000000PMpr', '00D90000000nI1C');
</script>

 thanks

Hi i have a website and would like implement Salesfoce live chat into it.

 

I have configured everything and able to click a button and chat window will prompt.

 

now i wanted the vistor to enter their email & phone before starting the chat so our agent will able to see thier profile. i found the sample code online is using apex. will it possible to be put in HTML?

 

this is button code.

 

<img id="liveagent_button_online_57390000000PN1b" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('57390000000PN1b')" src="https://testitapps.force.com/support/resource/1381204692000/pkb_search_icon" /><img id="liveagent_button_offline_57390000000PN1b" style="display: none; border: 0px none; " src="https://testitapps.force.com/support/resource/1381204692000/pkb_close_icon" />
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('57390000000PN1b', document.getElementById('liveagent_button_online_57390000000PN1b'));
liveagent.showWhenOffline('57390000000PN1b', document.getElementById('liveagent_button_offline_57390000000PN1b'));
});</script>


<script type='text/javascript' src='https://c.la1t1.salesforceliveagent.com/content/g/js/29.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.la1t1.salesforceliveagent.com/chat', '57290000000PMpr', '00D90000000nI1C');
</script>

 thanks