Control Triggers in Canvas App

In a Canvas app, control triggers are used to perform specific actions or tasks in response to user interactions with various controls, such as buttons, forms, galleries, or data cards.

Control triggers are a powerful feature that allows you to customize and automate the behavior of your app based on user actions or other events.

There are several types of control triggers in a Canvas app, including:

  1. OnSelect Trigger: This trigger is used to perform an action when the user clicks or taps on a control, such as a button or an image. For example, you can use the OnSelect trigger to navigate to a different screen, create a new record in a data source, or update the properties of other controls.  
  2. OnChange Trigger: This trigger is used to perform an action when the user changes the value of a control, such as a text input or a dropdown list. For example, you can use the OnChange trigger to filter data displayed in a gallery or update the value of a variable.  
  3. OnVisible Trigger: This trigger is used to perform an action when a control or a screen becomes visible to the user. For example, you can use the OnVisible trigger to initialize the properties of controls or fetch data from a data source.  
  4. OnTimerEnd Trigger: This trigger is used to perform an action when a timer control reaches its end time. For example, you can use the OnTimerEnd trigger to update a variable or navigate to a different screen after a specific time has elapsed.  
  5. OnSuccess and OnFailure Triggers: These triggers are used to perform an action when a data source operation, such as creating or updating a record, succeeds or fails. For example, you can use the OnSuccess trigger to show a success message or navigate to a different screen, and the OnFailure trigger to show an error message or retry the operation.  

To use control triggers in your Canvas app, you can select a control and then add or modify the triggers in the Properties pane. You can also write formulas in the formula bar to customize the behavior of your triggers, such as using if-else statements or accessing data from other controls or data sources.


Posted

in

by

Tags: