CMS Development

PatrykJ
Contributor

Chat/Messages - custom button - open chat window

Hello,

is it possible to open/expand the chat window by clicking on my custom button?

Can I use API for it or just my own javascript (but what about cross-site in this case)?

8 Replies 8
Flow1
Participant

Chat/Messages - custom button - open chat window

You can do this with a little code:

 

Button

<a id="launchChatbubble"><span>Live Chat</span></a> 

 

Action

<script>
// Launch HS chat from on page button
jQuery("#launchChatbubble").click(function() {
    window.HubSpotConversations.widget.load();
    window.HubSpotConversations.widget.open();
});
</script>

 

 

 

0 Upvotes
dominiquerottet
Participant

Chat/Messages - custom button - open chat window

This is a great feature idea that we need too!

0 Upvotes
PatrykJ
Contributor

Chat/Messages - custom button - open chat window

0 Upvotes
Mark1
Contributor

Chat/Messages - custom button - open chat window

Same deal. This would be really useful to open the chat from a link or custom button.

0 Upvotes
luke_
Participant

Chat/Messages - custom button - open chat window

did u find a solution to this?

0 Upvotes
PatrykJ
Contributor

Chat/Messages - custom button - open chat window

No, I didn't find.

0 Upvotes
TRooInbound
Key Advisor

Chat/Messages - custom button - open chat window

Hi @PatrykJ,

 

Please provide your page/website link, I will try if this is achievable or not?

gzone
Participant

Chat/Messages - custom button - open chat window

http://granitezone.co.uk/star-galaxy

 

I need the same thing in this page. On clicking "online chat" button, i need to open the chat box. Is it possible? Please let me know. Thanks in advance.

0 Upvotes