Creating a Custom Action

Create a custom action for a menu item or button, and write your own code to dictate its behavior.

  1. In the Screen Design page, from the palette, click the control you want to customize and click either the Menu box (if it's a menu item), or the screen where you want to place the control.
  2. Click the menu item or control to select it and configure the properties in the Properties view.
  3. In the Properties view, from Type, select Custom.
  4. In the Custom.js file, write the code in the customBeforeMenuItemClick to handle the action.
  5. Save the Custom.js file.