Events
Events trigger actions that respond to user interactions or system changes. They enable dynamic app behavior by executing specific functions when conditions are met. By leveraging events, you can enhance user experience, automate processes, and ensure seamless data synchronization within the app. The following events are configurable:
onBlur
onBlur is triggered when you leave a form field, for example, when you tap into another field, close a picker, or dismiss the keyboard. It allows you to run actions after the user finishes interacting with a field, rather than on every value change. OnBlur only applies to the following form fields:
component.text-field,
component.number-field,
component.email-field,
component.date-picker,
component.dropdown,
component.duration-picker,
component.signature-field,
component.media-field,
component.avatar-field
onChange
onChange is triggered every time the value changes in a field or component.
onFocus
onFocus triggers when a solution or jig gains focus, meaning it becomes the active element the user is interacting with. It is used to refresh data, adjust UI behavior, or trigger actions when the user returns to a screen.
onLoad
The onLoad event is triggered when the solution loads in the app. It is commonly used to initialize data, fetch remote resources, or set up UI elements before the user interacts with the solution.
onPress
This event is triggered when a user taps on a certain UI element, such as a button, link, or interactive component. It is used to handle user interactions and execute specific actions based on the tap event.
onRefresh
The onRefresh event is triggered when the user performs a refresh action, typically by pulling down on a list or screen. It is commonly used to reload data from a remote source or update displayed content to reflect the latest changes.
This event checks for local data changes within the app on specific data tables (entities). When a change is detected, the event triggers the configured actions that call remote data providers to sync and apply those changes. This ensures that the local and remote data stay consistent, maintaining up-to-date information across the system.
Last updated
Was this helpful?