Automatically trigger actions
You can automatically trigger an action or a sequence of actions without involving a user’s action.
Some actions do not require the user, such as triggering the automatic animation of the home screen. To do this, you have some triggers available: Current Screen Display & Current State Display.
To choose these triggers and set up your action, go to your screen/state and do not select any object. Open the Actions window and click + Add.
Select the Current Screen/State Display trigger and set your action.
All the triggers are detailed here: Triggers
Practical example: run an action only on the first visit
A common use of Current Screen Display is to detect the very first time a user opens a screen — for example, to show a welcome message or an onboarding overlay that should never repeat.
The pattern works as follows:
- Create a Boolean variable (e.g.,
onboarding_shown) in a PandaSuite database with no default value. - Add a Condition component and create a condition that checks whether
onboarding_shownis Unknown or empty. - On the screen, add a Current Screen Display trigger that evaluates this condition.
- When the condition is true (first visit), display the onboarding content and set
onboarding_showntotrue.
From the second visit onwards, the variable is set, the condition is false, and the onboarding is skipped.
For a full step-by-step guide covering this pattern and progressive content unlocking, see Unlock content progressively.