On Cancel
Last updated 30/03/2026
Overview
The On Cancel event is a client-side event that executes when the user clicks the Cancel button in the form app bar. It executes immediately before the process or mail merge form resets, allowing the application to perform any last minute checks, cleanup, or user notifications before the cancellation completes.
How it Works
When the Cancel button is clicked:
- The On Cancel event executes on the client.
- Any associated logic executes.
- If the event completes successfully, the form resets, and any unsaved changes are discarded.
Use Cases
- Cleaning up temporary data or resetting fields
- Logging cancellation actions
- Preventing accidental loss of data by showing warnings before the event executes