Although the system interprets and acts upon many events in a predefined way, certain actions, such as opening a form or clicking a command button, execute a user-defined C/AL function. The event triggers the function.
Using Form and Control Triggers
You typically use triggers for advanced validation, or perhaps to format text boxes according to the value of a field or control. In short, you use triggers when the default behavior does not suit your needs.