A lifecycle event is an event that runs automatically at different points in the running of a Form, Page or Control.
Lifecycle events include:
The Before events occur each time a Form, Page or Control is served. The Before Form event runs prior to the Before Page event, which runs prior to any Before Control events.
The On Error event occurs whenever an error in execution is encountered.