Would be nice to have a simple way to add onClick functionality to buttons, links etc for tracking or functionality/methods to toggle other custom elements while still being able to style these things cohesively with the rest of our projects if we are using animations etc.
I'm not super code savy so sorry if I am not conveying this correctly haha but hopefully you understand what I mean. I am aware this use be easy to do with custom attributes in the settings panel but was eventually disabled a while back.
I hope Webflow and the community will vote this up to bring back a simple way to add custom attributes for onClick methods/calls (not sure what the terminology is here).
I'm just adding this link here because this wishlist item seems to be answered. It works great for me:
https://forum.webflow.com/t/add-onclick-attribute-to-any-element-with-this-js-snippet/23730
Way cool! 😁
Thanks for the suggestion. I have added this to our backlog.
- Nelson, Customer Success Specialist