You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dynamic button based survey triggers are not working #7314
The engineering team at workera has investigated an issue related to actions not triggering a Formbricks survey. After enabling the debug query param we see that the event listeners are attached at the beginning of a page load mean means that any dynamic button that get's added at a later stage wont be setup with a click listener and trigger a survey to show.
This is most likely due to the listeners being setup using document.querySelectorAll().forEach(el => el.addEventListener("click", fn) rather than listening for all click events and filtering our event targets which match the CSS selector.
It does not say that dynamic content is not supported, or that it needs to exist at page load.
With this we are considering this as a bug.
I know we can work around this by implementing in code a click listener and fire a custom action event, but this is more of a short-term ad-hock solution, not a fix to the root problem.
Expected Behavior
Listening for all click events and filtering our event targets which match the CSS selector.
Other information (incl. screenshots, Formbricks version, steps to reproduce,...)
Hey *Hetsavani* l
Here is the video to see which are the buttons that are not working.
https://www.loom.com/share/f68ab1150cf7440c950925fb23850a97
In this video you can see how the button to expand and collapse the left
menu works fine. However, the other buttons that are displayed inside the
expandable areas (Start lessons, Level up buttons)
Those are not tracked properly on your end, and all the click actions in
there, are not detected by Formbricks.
Let me know if you have any questions.
El sáb, 21 feb 2026 a las 14:35, Het Savani ***@***.***>)
escribió:
Activity
Hetsavani commentedon Feb 21, 2026
Hey, If you provide steps to reproduce, I am willing to work on this issue.
fix(js-core): use closest() fallback for nested click target matching
ibonpintado4 commentedon Feb 23, 2026