show / hide menu

Add Trigger for a rule

Triggers are used to invoke rules configured within AppForms. When a rule is associated with a specific trigger, it executes automatically based on the defined event.

For example:

  • If a rule is created under the Form Load trigger, it will execute when the form loads.
  • If the selected control is a Button, the rule will execute when the end user clicks the button.
  • For other data entry controls, the rule will execute when the control’s value changes.

AppForms supports two types of triggers:

  • Control-based triggers
  • Default triggers

You can view the list of available triggers in the left pane of the Rules Editor window in the designer.

1. Set a Trigger for a Rule

When you create a new rule, you must assign a trigger to define when it should execute.

Steps:

  1. In the Rules Editor, select the rule from the Rules section in the left pane.
  2. Navigate to the Triggers section.
  3. You will see a list of available default triggers and control-based triggers.
  4. Select the desired trigger.
  5. Click the top arrow button to set the selected trigger for the rule.

2. Create a Rule Associated with a Control
    (Automatic Trigger Assignment)

You can also create rules directly associated with a specific control. In this case, the selected control is automatically set as the trigger.

Steps:

  1. Select the control in the form.
  2. In the popup Properties window, navigate to the Rules/Attributes section.
  3. Click Create Rule.

Once the rule is created, the selected control is automatically assigned as the trigger for that rule.