Wappler Version : 3.9.7
Operating System : WIN10
Server Model: NodeJS
Database Type: Postgres
Hosting Type: Docker
To a page’s App element I set a Dynamic Event to trigger an action on App->Ready event.
I tried several actions, like scrolling to a specific part of the page, but also showing a notification.
None of these actions are triggered however, so it seems the event trigger is not working.
Also tried with App=>Load event, which also doesn’t trigger the action:
To be sure it’s not the actions that were setup incorrectly, I added a button to trigger the actions and they work well then, so it’s definitely the event that’s not fired or not triggering the actions.
It’s a content page, so that clarifies the issue then. Is there a workaround to make it work on a content page? Since I can’t include it on the layout page either.
Cool @mebeingken, that’s a perfectly working alternative!
I had to set a wait/delay in the app flow btw to make it work. There’s no way to add a step to the flow to wait for scripts or the full page to be ready/loaded before running the action, is there?
You could create an api server action that does nothing. Add a server connect element to your content page and perform your actions on success of that server connect.
Thanks again for thinking along @mebeingken!
Actually I had the same idea and tried that already. However, it seems required elements/scripts for the action that I want to run still aren’t loaded on that api server action success.
But thanks anyway!
I’m so happy I finally found this thread after struggling with this for awhile. Thanks, Emiel for the question, George for the clarification that it is known not to work, and Ken for the solution!