On Close
The actions that will be performed whenever the dialog is closed. Click the edit button to open the script editor.
Tip: If you need to prevent the user from closing the dialog or want to add a confirmation message, you can use the built-in function QueryAllowDialogClose.