CMS Development

PatrykJ
Contributeur

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 Réponses
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 Votes
dominiquerottet
Participant

Chat/Messages - custom button - open chat window

This is a great feature idea that we need too!

0 Votes
PatrykJ
Contributeur

Chat/Messages - custom button - open chat window

0 Votes
Mark1
Contributeur

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 Votes
luke_
Participant

Chat/Messages - custom button - open chat window

did u find a solution to this?

0 Votes
PatrykJ
Contributeur

Chat/Messages - custom button - open chat window

No, I didn't find.

0 Votes
TRooInbound
Conseiller clé

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 Votes