Skip to main content

Introduction to Form Field Events

Last updated 30/11/2021

Five's Form Field Events

You can add functionality to your form fields by generating events written in custom code for performing validation checks, calculations, and more. The custom code will be triggered client-side and will occur in the browser to allow more interactivity by immediately responding to your end-users actions.

The following serves as an overview of the types of events that can be attached to a form field.

Event NameServer/Client EventEvent Fires
OnEnterClientEvent fires when a user enters the field.
OnListSelectClientEvent fires when a user clicks on a selection from a lookup display type.
OnValidateClientEvent fires when a user leaves the field.
OnExitClientEvent fires when a user exits the field.

Add an Event to a Form Field

Prerequisite

The function must be coded in the Functions view.

Steps

  1. Select Forms in the menu.
  2. Select the required form record in the list.
  3. Click the Pages tab.
Select the Form Record
Figure 1 - Select the form record

  1. Select the Pages record.
Select the Page Record
Figure 2 - Select the page record

  1. Click the Fields tab.
Fields tab
Figure 3 - Fields tab

  1. Select the required form field record.
Select the Form Field Record
Figure 4 - Select the form field record

  1. Click the Events tab.
Events Tab
Figure 5 - Events tab

  1. Click the Edit button in the form app bar.
  2. Use the lookup icon in the required Event field and select the Function ID.
Attach the Function
Figure 6 - Attach the function

  1. Click the Save button in the form app bar.
Attach the Function
Figure 6 - Attach the function

  1. Click both Save buttons in the stacked form app bars.
Save the Form
Figure 7 - Save the form