The Before audit log event is executed before a record is added to the log.
the occured action.
params: the user's IP address, params: username.
the modified table.
an array of key column values pointing to the current record.
an array of field values added to the database. You can modify any of those fields, see Example 2.
an array of the previous field values. Applies to the Edit and Delete functions.
True: save the action in the log.
False: do not save the action in the log.
Applies to pages
All pages. Insert your code into the Before audit log event.
If you do not want to record the actions done by the admin in the audit log, you can use the following code:
Replace ID with the actual value from the lookup table and save it in the audit log.