Skip to content

Button Actions

In Lowgile, buttons can trigger actions that run scripts or perform defined behaviors.
There are two main types of button actions, depending on where the action logic is defined and how it’s reused.

Ad-hoc actions are specific to a single button.
The action script is defined directly within the button’s Properties panel under its Action settings.

These are the most common type of button actions in Lowgile — ideal for simple, one-off interactions such as saving a record, navigating to another screen, or executing a short script.

Centrally managed actions are reusable actions that can be triggered from multiple places within a screen.
Instead of defining the script in an individual button’s properties, these actions are created and managed in the screen’s Actions tab.

This approach helps maintain cleaner, modular logic — especially in complex screens where multiple buttons need to trigger the same action or workflow.

CriteriaAd-hoc ActionsCentrally Managed Actions
Definition LocationDefined directly in the button’s Properties panelDefined in the screen’s Actions tab
ReusabilityUsed by a single button onlyCan be triggered by multiple buttons or components
Use CaseSimple, one-time actions (e.g., save, cancel, navigate)Shared or complex actions reused across multiple triggers
MaintainabilityEasier for small screensEasier to manage in larger apps with repeated logic
ExampleSave button runs a short validation script“Submit Request” action reused by multiple screens

Best Practice

Use ad-hoc actions for simple, localized behaviors.
Use centrally managed actions when multiple buttons or components need to share the same logic.