Overview
Last updated 31/03/2026
Button Events
In Five there are two main types of buttons you can add for your application:
- Application Button
- Appears in the application's top menu bar alongside Five's default buttons
- Used for actions that are global to the application
- Action Button
- Appears in the form app bar for specific actions:
- Forms
- Charts
- Data Views
- Dashboards
- Reports
- Processes
- Mail Merges
- Used to perform context-specific operations
- An action button on a form can also be placed in the list app bar above the main list of records
Events
Buttons have three key events that define what happens when the button is clicked. These events can run on their own or be linked together to control the order of execution.
| Event | Executes | Description |
|---|---|---|
| On Press | Client | Executes when an action button is clicked. |
| Do Press | Server | Executes when an action button is clicked. |
| On Finish | Client | Executes when an action button is clicked. |
On Press
The On Press event is a client-side event that executes as soon as the button is clicked. This is typically used for client-side logic, such as validation, setting variables, or preparing data before sending it to the server.
Do Press
The Do Press event is a server-side event that executes after the On Press event has successfully executed when chained together. This is used for server-side logic, such as database updates, processing, or running backend functions.
On Finish
On Finish is a client-side event that executes after the previous event or events have successfully executed.
- If only On Press is used, it executes after On Press
- If only Do Press is used, it executes after Do Press
- If both are used, it executes after On Press and Do Press
This is typically used for final client-side actions, such as refreshing the UI or displaying messages.