Skip to main content

Introduction to Five's Menu Events

Last updated 8/12/2021

Five's Menu Events

You can add functionality to your menus by generating events written in custom code. At the time of this documentation Five only has the one menu event. The custom code can be triggered client-side and can call a server-side function.

The following serves as an overview of the type of event that can be attached to a menu.

Event NameServer/Client EventEvent Fires
OnDrillDownClientThe event will fire when a user clicks the Down button in the form app bar of a parent menu.

Add an Event to a Form

Prerequisite

The function must be coded in the Functions view.

Steps

  1. Select Menus in the menu.
  2. Click the Add Item button in the list app bar.
  3. Fill in the required details on the General Page.
  4. Click the Events tab.
Add a New Form
Figure 1 - Add a new form

  1. Use the lookup icon in the On Drill Down field and select the Function ID.
  2. Click the Save button in the form app bar.
Add an Event to a New Form
Figure 2 - Add an event to a new form

Edit a Form to Add an Event

Prerequisite

The function must be coded in the Functions view.

Steps

  1. Select Menus in the menu.
  2. Select the required menu record in the list.
  3. Click the Events tab.
Edit a Saved Record to Add an Event
Figure 3 - Edit a saved record to add an event

  1. Click the Edit button in the form app bar.
Edit Button
Figure 4 - Edit button

  1. Use the lookup icon in the On Drill Down field and select the Function ID.
  2. Click the Save button in the form app bar.
Attach Function and Save the Form
Figure 5 - Attach the function and save the form

Remove an Event from a Menu Record

  1. Select Menus in the menu.
  2. Select the required menu record in the list.
  3. Click the Events tab.
Edit a Saved Record to Add an Event
Figure 6 - Edit a saved record to add an event

  1. Click the Edit button.
Edit Button
Figure 7 - Edit button

  1. Click the Cancel button in the On Drill Down field.
  2. Click the Save button in the form app bar.
Remove the Event and Save the Form
Figure 8 - Remove the event and save the form