LiveHelpNow Help Desk

Support Center

BASIC

ADVANCED

Exact Match:

  • Home
  • Categories
  • Home
  • Categories
  1. Home
  2. Categories
  3. Redirect to custom offline window when all operators are offline

Redirect to custom offline window when all operators are offline

  • Date updated 2020-03-27
  • Author LiveHelpNow
  • Comments 0
  • Rating
  • Categories
  • Advanced Customization
  • Chat Windows
  • Tags
  • Custom
  • routing
  • javascript
  • redirect

I would like to redirect the visitor to a custom offline contact form which already exists on my site instead of opening LiveHelpNow "leave a message" form, is this possible?

Yes it is possible by simply inserting this function to the page where LiveHelpNow is installed.

For the embedded widget, please use this code:

<script type=“text/javascript">  
function lhnJsSdkOfflineShown(){  
location.href='YOUR OFFLINE FORM URL'; 
}  
</script>


For classic pop up style window, please use this:

Please change LHNACCOUNTID with NUMERIC portion of your LiveHelpNow account #  and YOUR OFFLINE FORM URL with URL on your site to redirect the visitor to.

<SCRIPT>

function CustomOpenLHNChat(){

if (typeof lhnWin !== 'undefined' && lhnWin){

if (!lhnWin.closed){

lhnWin.blur();

setTimeout(lhnWin.focus(), 10);

return false;

}

}

 

var wleft = (screen.width - 580-32) / 2;

var wtop = (screen.height - 420 - 96) / 2;

if (bLHNOnline == 0) { location.href='YOUR OFFLINE FORM URL';} else {

lhnWin=window.open('https://www.livehelpnow.net/lhn/livechatvisitor.aspx?lhnid=LHNACCOUNTID', 'lhnchat', 'left=' + wleft + ',top=' + wtop +',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');

}

}

</SCRIPT>

 

 

*IMPORTANT FOR DEPT ROUTING VIA CHAT BUTTON

 

If your are using dept routing via the chat button, please use the code below instead of the code above. Please change LHNACCOUNTID with NUMERIC portion of your LiveHelpNow account # and DEPTNUMBER with the dept number you want to use.

Place YOUR OFFLINE FORM URL with URL on your site to redirect the visitor to.

 

<SCRIPT>

function CustomOpenLHNChat(){

if (typeof lhnWin !== 'undefined' && lhnWin){

if (!lhnWin.closed){

lhnWin.blur();

setTimeout(lhnWin.focus(), 10);

return false;

}

}

 

var wleft = (screen.width - 580-32) / 2;

var wtop = (screen.height - 420 - 96) / 2;

if (bLHNOnline == 0) { location.href='YOUR OFFLINE FORM URL';} else {

window.open('https://www.livehelpnow.net/lhn/livechatvisitor.aspx?lhnid=LHNACCOUNTID&d=DEPTNUMBER', 'lhnchat', 'left=' + wleft + ',top=' + wtop +',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');

}

}

</SCRIPT>

Rate this article


Your email is now subscribed to alerts for this article

Your email is not subscribed to alerts for this article

Subscribe to alerts for this article below

Unsubscribe to alerts for this article below


Leave a comment?

Related articles

  • What are the Software Requirements for running the LiveHelpNow Alerter?
    • 28763
    • 64
    • 0
  • Installation on a Flash based website
    • 24516
    • 61
    • 0
  • Custom information feed
    • 29709
    • 28
    • 0
  • How to disable chat invitation door bell sound
    • 24871
    • 63
    • 0
  • Install live chat as a link
    • 27758
    • 61
    • 0
  • Custom Live Chat Buttons
    • 35531
    • 87
    • 0
  • Trigger chat invitations
    • 27983
    • 61
    • 0
  • Dynamic chat invitations
    • 28589
    • 66
    • 0
  • Live Chat operator online/offline detection via JavaScript
    • 27895
    • 70
    • 0
  • Designing and publishing multiple ticket submission forms for the same account
    • 28795
    • 94
    • 0

Popular Knowledge Base Articles

  • Customize with different languages
    • 22010
    • 27
    • 0
  • LiveHelpNow Section 508 Compliance & Accessibility for Visually Impaired Users
    • 17243
    • 61
    • 0
  • Unsecured content warnings
    • 16354
    • 57
    • 0
  • HelpOut Tab - changing Chat, Ticket and Callback button images
    • 24102
    • 27
    • 0

Knowledge Base Authors

  • Michael Conde
    Michael Conde
    Total articles: 10
  • LiveHelpNow
    LiveHelpNow
    Total articles: 254

Company Sites

Home

Blog

Categories

  • General Questions
  • Getting Started
  • Customization
  • Advanced Customization
  • Troubleshooting
  • All Categories

Connect With Us

  • LiveHelpNow, LLC
  • Customer Service Software
  • 515 S West End Blvd
    Suite 202
    Quakertown, PA 18951

  • 8775483001
  • help@livehelpnow.com
  • https://www.livehelpnow.net
    Powered by LiveHelpNow customer support suite