<h2>Customize list context menus</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Customize list context menus" /><meta name="abstract" content="You can customize the content and behavior of list context menus." /><meta name="description" content="You can customize the content and behavior of list context menus." /><meta name="DC.subject" content="navigation and UI, context menu, context menus, create" /><meta name="keywords" content="navigation and UI, context menu, context menus, create" /><meta name="DC.relation" scheme="URI" content="../../../administer/core-configuration/concept/p_ListAdministration.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/intro-now-platform-landing.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/config-now-platform-core-features.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/now-platform-forms-fields-lists.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/navigation-and-ui/reference/r_ActionScript.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/navigation-and-ui/reference/r_DynamicActionsScript.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/navigation-and-ui/reference/r_OnShowScript.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-08-01" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="t_CreateAContextMenu" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Customize list context menus</title></head><body id="t_CreateAContextMenu"> <div class="breadcrumb"><a class="link" href="../../../administer/general/concept/intro-now-platform-landing.html" title="As a platform administrator, you have the power of the Now Platform at your fingertips. The Now Platform is an application platform as a service that automates business processes across the enterprise.">Administer the Now Platform</a> > <a class="link" href="../../../administer/general/concept/config-now-platform-core-features.html" title="The Now Platform provides for a multitude of customization options to your applications. Customize your UI, handle user and data administration, and localize your instance for time zones, currencies, and more.">Configure Now Platform Core Features</a> > <a class="link" href="../../../administer/general/concept/now-platform-forms-fields-lists.html" title="Data collection is easy with the Now Platform. Customize your forms with personalization, templates, tailored UI, file attachments, and more.">Now Platform forms, fields, and lists</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Customize list context menus</h1> <div class="body taskbody"><p class="shortdesc">You can customize the content and behavior of list context menus.</p> <div class="section prereq p">Role required: admin</div> <div class="section context">For example, you might add an option to the list column heading menu for a specific table. You might also want to change the roles required to access a global context menu option.</div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">System UI</span> > <span class="ph uicontrol">UI Context Menus</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">New</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Complete the form.</span> <div class="itemgroup info"> <div class="p"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="t_CreateAContextMenu__table_bp5_h2r_sr" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Context menu form fields</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d362539e109">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d362539e112">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Table</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 "><p class="p">Select the table to which this context menu option is attached. The base system menu items are attached to the Global [global] table, which applies the context menu option to all lists for all tables. If you specify a particular table, the option is available only on context menus in lists from that table.</p> <div class="p"><div class="note"><span class="notetitle">Note:</span> The list shows only tables and database views that are in the same scope as the context menu.</div> </div> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Menu</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 "><div class="p">Select the list context menu in which this option appears.<ul class="ul" id="t_CreateAContextMenu__ul_c2x_v2r_sr"><li class="li">List title</li><li class="li">List header</li><li class="li">List row</li></ul> </div> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 "><div class="p">Select the type of menu option to create:<ul class="ul" id="t_CreateAContextMenu__ul_nrb_1fr_sr"><li class="li"><span class="ph uicontrol">Action</span>: A menu option that performs an immediate action.</li><li class="li"><span class="ph uicontrol">Menu</span>: Creates a parent menu that can display a submenu.</li><li class="li"><span class="ph uicontrol">Separator</span>: Draws a line between groups of options on a menu. Menus do not display separator lines next to one another or at the bottom of a menu. If a condition that removes options for a role forces two separators together, one of the separators is removed from the view.</li><li class="li"><span class="ph uicontrol">Label</span>: Create an unlinked label for a menu or section of a menu.</li><li class="li"><span class="ph uicontrol">Dynamic actions</span>: Menu options dynamically created, such as the available views or user filters that can only be generated at the time the list is displayed.</li></ul> </div> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 ">Enter the label for the action as it will appear in the menu.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Parent</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 ">If this action is part of a submenu, type the name of the parent menu item. For example, in the base system, <span class="ph uicontrol">Configure</span> is a parent.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Order</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 ">Assign an order number to this item, menu, or separator to specify where in the menu it appears.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Active</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 ">Enable or disable this context menu item. Only active items are shown in the context menu.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Run onShow script</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 ">Select this check box to display the <span class="ph uicontrol">onShow script</span> field.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Condition</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 ">Create the conditions under which this menu option appears. For example, define the role that has permission to see this item.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Action script</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 ">The action script runs when someone selects the context menu option. For more information, see <a class="xref" href="../reference/r_ActionScript.html" title="The Action script field, on the Context Menu form, defines a script. The script runs when someone selects the context menu option.">Action script for list context menus</a>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">Dynamic actions script</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 ">The dynamic actions script populates the context menu with dynamic options, such as filters or views. For more information, see <a class="xref" href="../reference/r_DynamicActionsScript.html" title="The Dynamic actions script field, on the Context Menu form, defines a script. The script populates a list context menu with dynamic options, such as filters or views.">Dynamic actions script for list context menus</a>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e109 ">onShow script</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d362539e112 ">The onShow script runs before the context menu is displayed, to determine which options appear in the context menu. For more information, see <a class="xref" href="../reference/r_OnShowScript.html" title="The onShow script field defines a script that runs before the context menu is displayed to determine which options appear in the context menu.">onShow script for list context menus</a>.</td></tr></tbody></table> </div> </div> <div class="p"><div class="fig fignone" id="t_CreateAContextMenu__fig_gjv_cmr_sr"> <img class="image" id="t_CreateAContextMenu__image_o2p_2mr_sr" src="../image/ContextMenuForm.png" alt="Context menu form" /> </div> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">Submit</span>.</span> </li></ol> </div> <div class="related-links"> <ul class="ullinks"><li class="link ulchildlink"><strong><a href="../../../administer/navigation-and-ui/reference/r_ActionScript.html">Action script for list context menus</a></strong><br /> The <span class="ph uicontrol">Action script</span> field, on the Context Menu form, defines a script. The script runs when someone selects the context menu option.</li><li class="link ulchildlink"><strong><a href="../../../administer/navigation-and-ui/reference/r_DynamicActionsScript.html">Dynamic actions script for list context menus</a></strong><br /> The <span class="ph uicontrol">Dynamic actions script</span> field, on the Context Menu form, defines a script. The script populates a list context menu with dynamic options, such as filters or views.</li><li class="link ulchildlink"><strong><a href="../../../administer/navigation-and-ui/reference/r_OnShowScript.html">onShow script for list context menus</a></strong><br /> The <span class="ph uicontrol">onShow script</span> field defines a script that runs before the context menu is displayed to determine which options appear in the context menu.</li></ul> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../administer/core-configuration/concept/p_ListAdministration.html" title="Administrators control the data presented to end users in a list, the controls that appear, and the behavior of the controls.">List administration</a></div> </div> </div></body></html></div>