Skip to main content
Closed for Voting

Set the livechat window to auto open when a user hits the page

Related products:Freshdesk
  • May 10, 2018
  • 7 replies
  • 213 views

Is there a way (not the 15 second delay proactive chat) to have the chat widget automatically open immediately when a user lands on the page?  Is there a way to adjust the widget code to do this?  We are using Freshdesk and this is the integrated livechat widget, not through "Freshchat". 

7 replies

aravind.sundararajan
Skilled Expert
Forum|alt.badge.img+12

Hello Jill,


You can use a simple jQuery trigger to open the chat widget on a specific page. Please paste this code right below the chat widget code in your website.


<script type="text/javascript">
  
  jQuery(document).ready(function(){
    setTimeout(function(){
  jQuery("#lc_chat_header").trigger("click");
    },3000);
  });
</script>


Cheers!


  • Author
  • Contributor
  • May 17, 2018

Is there a way to actually make this a full screen chat?  We are creating an integration and full screen would be a cleaner approach since it will be in a small pop out window.  


aravind.sundararajan
Skilled Expert
Forum|alt.badge.img+12

Hi Jill,


You can create a static html page with dimensions similar to the chat widget and include the chat widget code in the page. This way, if the user initiates the chat, the chat widget will open in a popup window occupying the entire real estate.


Cheers!


  • Author
  • Contributor
  • May 17, 2018

That is what we are currently doing, but it doesn't look as nice.  WE would rather have the chat window be full screen.  Do you know the code to make it full screen in stead of a widget window?


  • Author
  • Contributor
  • June 13, 2018

Just pinging on this, anyone know of a solution to make the live-chat full screen aka, code so that the chat is actually the webpage and not a widget? This is pretty important for our team. 


  • Community Debut
  • April 19, 2019

Hi,

Is it possible that there is a jQuery trigger for the new 'FreshChat' function?

Thanks,

Ewan


  • Community Debut
  • April 19, 2019

Got it (via FreshChat support)

 

<script>
  window.fcWidget.init({
   "config": {
      "cssNames": {
         "expanded": "custom_fc_expanded",
         "widget": "custom_fc_frame"
      }
   },
   "host": "https://wchat.freshchat.com",
   "open": true,
   "token": "5bd006fa-5c32-4c6b-9db2-4d88087b14f6"
  });
</script>