Although command buttons are a convenient way to add functionality to forms, having too many buttons on a form can create clutter and detract from the usability and visual design. If you have to add many command buttons to a form, you should consider creating a few menu buttons instead. When you click a menu button, a menu opens.

Menu Items

Each line in a menu is called a menu item. A menu item can:

  • Perform an action when it is clicked. This can be an action from the same set of actions as the command button or it can be an action written in C/AL. Menu items have OnPush triggers like command buttons.

  • Contain a submenu that is opened when the line is clicked.

  • Be a separator, which is a line used for grouping together items in a menu.

See Also