I’m trying to do the same thing. I have a contact section on my site and instead of putting the directions “click the chat button below” I’d rather the chat app just open when they click the “Click to Chat” text.
This tutorial helped me some. https://www.wix.com/corvid/tutorial/how-to-add-custom-interactions-with-javascript
I adapted it for my purposes and made this code:
export function box5_click(event) {
$w(‘#wixChat1’).expand();
}
In other words when you click the box it should expand wix chat. But it’s not working. I’m not sure if it’s because the previewer doesn’t have the ability to simulate the wix chat or if for some reason wix chat doesn’t respond to expand()