Hey NV,
I’m glad you found help in my 3-year-old thread!
I tried looking around your project, and I couldn’t find a trace of my mentioned script (make sure to add it to the page’s head tag, or the project’s head tag).
Nevertheless, i tried looking around more a bit, and I found 2 possible faults:
It seems like you titled your attribute “chatClicked” rather than “whenClicked” - you can do that, but you have to reflect that in the script.
And most importantly, that value you put in to the attribute contains HTML code rather than JS code.
It’s super important that you understand the purpose of my short script - it does a small workaround which allows placing a value in a “reserved” attribute like “onClick”, by taking it’s value from “whenClicked”.
You have to make sure that your naming is correct, and that the code you put inside the “whenClicked” attribute is a valid JS script that can be invoked by an onClick event.
Inputting Tawk_API.toggle()
as the value of the whenClicked attribute should do the trick.
I highly advise you to play around a bit with manually building basic websites with HTML CSS and JS to understand how to make better use of the full capabilities of Webflow.