We are using the Gatsby framework that dyanmically creates page content when a user navigates to the page. I want to use the “Trigger on button click” method to open a Popup CTA when a user clicks a link on our site. I have added the relevant classes to the link but it doesn’t work. I presume the reason is that Hubspot is not aware of these links since it only attaches it’s event listeners on page load. Is there a way to get Hubspot to run it’s CTA event listener script manually so we can attach them when new elements are created on the page?
Hey @nickgi this wouldn’t be possible at the moment, the new CTA editor is in very early stages though and the team are very active in building this out. So I’d definitely recomend adding a feature request to the ideas forum to provide this feedback to them!
Thanks for confirming that. I’ve submitted the idea here for anyone else who wants to track this.