Not the first to request this. I know many people have requested this.
Please create the ability for us to have site visitors to open Wix Chat by adding buttons throughout the website.
Currently you only get a default button that stays on all the pages. However, we would all like wix chat to be opened when a person clicks other buttons on the page or even text links.
@larsdm11 , this is now possible by using the new wixChatAPIs. Let’s say you have a button on your site, and you add a onClick handler using the property panel of that button. Your code would look like this:
export function buttonId1_click(event){
$w("#chatBoxId").maximize();
}
On your main page don’t open the light box automatically but open it from your code (I don’t it onClick event but you can do it with setTimeout on the onReady):
Thank you very much for your codes. I REALLY APPRETIATE it. The only problem is that chat window does not automatically opens when you click on that button.