Events determine when a form rule is executed. An event acts as the trigger for a rule and can originate from either the form itself or a specific widget. When the selected event occurs, the rule evaluates its conditions and, if they are met, executes the configured actions.
Form events occur at the form level. The following form events are available:
| Event | Description |
|---|---|
| Form loaded | Triggers the rule when the form is opened and loaded. This event is commonly used to initialize values, populate widgets, or configure the form before user interaction begins. |
| Process finished |
Triggers the rule when a process is completed. Use the correlationKey property in the payload to associate the event with a specific starting form action. |
| Outcomes | Triggers the rule when a specific form outcome is selected. |
Field events occur as users interact with individual widgets. The following field events are available:
| Event | Description |
|---|---|
| Field value changes | Triggers the rule when the value of a widget changes. This is the most commonly used event for implementing dynamic form behavior. |
| click | Triggers the rule when a user selects a widget. |
| blur | Triggers the rule when a widget loses focus after the user has interacted with it. |
| change | Triggers the rule when the value of a widget changes and the change is committed. |
| focus | Triggers the rule when a widget receives focus. |
| focusin | Triggers the rule when focus enters a widget or one of its child elements. |
| focusout | Triggers the rule when focus leaves a widget or one of its child elements. |
| input | Triggers the rule while a user enters or modifies a value in a widget. |
| invalid | Triggers the rule when a widget contains an invalid value. |
| select | Triggers the rule when a value or item is selected in a widget. |