Need a Separator on between two context menus on Incident form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016 11:54 PM
I need a separator between two form context menus on Incident.
The OOB UI Context Menu do not serve my purpose as it only helps to create a List Separator.
Anyone done this before ?
Thanks in advance !!
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2016 12:43 AM
Good news is, it's possible to force a separator in form context menu. It looks like there is some magic around the order of UI actions that comprise the menu.
Sorry, I have no time to figure out an all-embracing guide, so just my observations here:
- my goal was to force a separator around my custom UI action on form context menu of incident_task
- there are some out-of-the-box UI actions such as "Metrics Timeline" and "Show Live Feed" with their respective order value 140, that in my case appear on that menu topmost
- there are some items on that menu, such as "Insert" and "Insert and Stay", that are not listed among UI actions but come next on the menu;
then submenus "Configure", "Export" and "View", etc. - I played with the order of my custom UI action:
100 my action appears on the menu topmost (as expected)
900 my action appears on the menu between "Insert and Stay" and submenu "Configure" (as expected, supposed the order of "Insert and Stay" is lower)
2000 my action still appears on the menu between "Insert and Stay" and submenu "Configure" (as expected, supposed the order of "Configure" is higher)
1000 my action appears on the menu between "Insert and Stay" and submenu "Configure", separated from "Insert and Stay" by a horisontal line! (magic)
So you may want to play with the order of your UI action, with some luck you find a value which causes a separator to be displayed above (and below?) it.