Executed before a record is modified in the table.
(Boolean) Indicates whether a record should be modified. The return value is checked after each function call. If true, the record is modified (default). If false, the record is not modified.
If an error occurs in the trigger code, the action is canceled, but the page is not closed.
You can write to the database using this trigger.