Skip to main content

On Show

Last updated 23/03/2026

Overview

The On Show event is a client-side event that executes when a form record is displayed. This occurs both when a new record is being created via the Add Item button or when an existing record is selected from a list. It allows the application to react immediately after the record is visible to the user.

How it Works

When a record is displayed:

  1. The record appears on the client, either new or existing.
  2. The On Show client-side event executes.

Use Cases:

  • Show or hide UI components dynamically
  • Trigger client-side calculations or validations
  • Load related data for display purposes

Example

This function shows a message when a new record or an existing record displays on the screen.

JavaScript
Show message
function category(five, context, result) {
five.showMessage('A category must be added');
return five.success();
}