App Loaded
Controlled node
Overview
The App Loaded node fires once when the UI application loads. This node is specifically designed for Form and UI workflows, providing an entry point to initialize data, set default variables, or trigger startup logic when a user first opens the application.
Unlike most controlled nodes, App Loaded does not require a "Run" event input. It automatically triggers when the system emits the App.onAppLoaded event, which occurs once during application initialization.
Inputs
This node has no inputs.
Outputs
| Output | Type | Description |
|---|---|---|
| Fired | Event | Fires once when the UI application loads. |
Runtime Behavior and Defaults
- Event Trigger: The node listens for the internal
App.onAppLoadedevent, emitted by the system when the UI application first initializes. - Execution: When the event is received, the node immediately triggers its "Fired" output event.
- Frequency: This event fires only once per application session. If you need to run logic multiple times, connect the Fired event to loops or other triggering mechanisms.
- Context: This node is only useful in workflows that are deployed as UI applications or forms. It will not trigger in backend-only workflows.
Example Usage
Initializing Application State
Use the App Loaded node to set up initial conditions when your form opens:
- Place an App Loaded node in your workflow
- Connect the Fired output to:
- A Set UI Variable node to initialize default form values
- A Load Form Page node to navigate to your starting page
- Database query nodes (like Read Database or Query Database) to fetch initial data
- Set Variable nodes to configure global workflow settings
This ensures your application is properly initialized with the correct data and state before the user interacts with it.