Good day people, i need help with triggering “onscroll” workflow and for some reason i can’t seem to trigger my onscroll workflow for my chat widget element.
im not using the page on scroll because we want to detect when user scrolls up, we load old data.
i’ve asked weweb AI and followed the instruction in detail but the onscroll is not firing, lease help
For those who’s facing the same issue, just avoid using weweb’s chat widget entirely because there is no way for you track scroll especially if you’re building a chat function like whatsapp
my solution is to ask the AI to just create a custom component based on AI chat widget with all the functionality we want.
Hi William, thank you for sharing a possible solution.
If indeed we are not able to track scroll with our native element, creating a new one from scratch is an excellent alternative.
I’d also consider using Cursor to create a powerful custom component and import it back to WeWeb.
Last week was my first time using that workflow, cursor to WeWeb, and it is a bit intimidating in the beginning but once you get past the setup it’s quite easy to use and extremely powerful (addicting as well haha)
B. Global workflow to do whatever you need with the payload from the function (parameter must match the object’s key you pass into wwLib.executeWorkflow