Executed immediately before the form closes.
Property Value/Return Value
(Boolean) Indicates whether the form should be closed. This value is checked after each function call.
If neither the form nor any child form returns FALSE in this trigger, the OnCloseForm Trigger trigger is called for all child forms and then for the form itself (the parent form).
The close action is canceled if an error occurs in the trigger code, and the form is not closed. You can use this trigger to write to the database.