Events
On the Events page of the Property Editor, you can configure the messages to be shown, or the scripts to be executed when the task form is opened or closed.
Click on the Add item button and select either the Message Action or SQL Action option.