We can use the GlideMenu class to customize the options available in the form header context menu through the client scripts. The g_item object refers to the GlideMenuItem class.
The following are some examples of functions available in the GlideMenu class:
- voidg_menu.clearImage: This method can be used to specify which item will have its image removed from the display:
g_menu.clearImage(g_item);
- void setDisabled: This method can be used to mark a menu item as disabled:
g_menu.setDisabled(g_item)