How to call an Action when a screen loads?
It is possible to call an Action when the screen loads.
How to call an Action when the screen loads:
1) Go to the Screen that will have the action.
Here we have a basic Standard Screen.
2) Go to "Templates" and search for "onLoad".
3) "Use" this Template.
Click on "OK" to close the popup.
4) Template Position
You will notice a special item has been added to the Screen.
The Template will probably be at the top of the screen. If not, it makes sense to move it to the top so that you remember it is on your screen. But it makes no difference where it is positioned, it will always run when the screen loads.
5) Event Items
This is a special Item... called an "Event". It has a dashed borderd, and grey backgroud. This is to show you that it is an Event.
Events are only visible while editing your app (in App Builder). Once you publish the app, the Event item will be invisible, but it will continue to funciton properly.
6) Change the Action
Edit the Event item (in the normal way, click on it and select "Edit").
Go to the Action tab.
You can also click "Change Action" and set it to any other action that's available.
- Make a Word Game that set the value of a Text Input item when the screen loads