App load/ready event not triggering action

Wappler Version : 3.9.7
Operating System : WIN10
Server Model: NodeJS
Database Type: Postgres
Hosting Type: Docker

To a page’s App element image 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:

image

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.

1 Like

Are you still on full page or content page?

Those events don’t work on content pages.

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.

A flow set to auto-run will fire each time a content page comes into view.

2 Likes

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?

Thanks again for your help, appreciate it! :+1:

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! :+1:

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!

2 Likes