The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How can I edit the form context menu?

bUnAi
Giga Contributor

Hi,

I want to hide "Export" from the context menu at the top left of the incident form screen, but I don't know how.

If you know, can you tell me?

 

Regards,

bunai

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@bUnAi 

Add this extra condition to hide it only for incident table list

Steps: Visit this URL for Context Menu -> Export

URL: https://instanceName.service-now.com/nav_to.do?uri=sys_ui_context_menu.do?sys_id=d1ad2f010a0a0b3e005c8b7fbd7c4e28

Existing Condition: !ListProperties.isRelatedList() && !ListProperties.isRefList()

New Condition: !ListProperties.isRelatedList() && !ListProperties.isRefList() && ListProperties.getTable() != 'incident'

find_real_file.png

Output: EXPORT Option is Disabled only for incident

find_real_file.png

OUTPUT: Export Show for Other tables

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Mario Quinones1
Mega Guru

You can disable it or add extra condition

 

https://<>.service-now.com/sys_ui_context_menu.do?sys_id=d1ad2f010a0a0b3e005c8b7fbd7c4e28&sysparm_record_target=sys_ui_context_menu&sysparm_record_row=2&sysparm_record_rows=2&sysparm_record_list=nameSTARTSWITHexport%5EORDERBYorder

 

Please mark question as answered if correct

Santosh_Ksagar
Mega Sage
Mega Sage

DirkRedeker
Mega Sage

Hi

You can navigate to "UI Context Menus" (see screenshot below):

find_real_file.png

Filter for the Name "Export" and open the "Export" record. like shown in the screenshot above.

 

In the form shown, change the Condition Field to something like shown in the screenshot below.

In my example, I added a condition, to make the "Export" Context Menu option only available to users with the "admin" Role.

find_real_file.png

Impersonating as "Beth Anglin", who does NOT have the "admin" Role, the "Export" COntext menu is not shown anymore, like you can see in the screenshot below:

find_real_file.png

 

If you change the condition, so that users with the Role "itil" will have access to the context menu, see screenshot below....

find_real_file.png

The user "Beth Anglin" (who HAS the "itil" Role), WILL be able to see and use the "EXPORT" Context menu, see screenshot below:

find_real_file.png

Note, that this is a GLOBAL change, and will affect ALL Lists in your system immediately.

Let me know if that answers your question and mark my answer as correct and helpful.

BR
Dirk

 

Ankur Bawiskar
Tera Patron
Tera Patron

@bUnAi 

Add this extra condition to hide it only for incident table list

Steps: Visit this URL for Context Menu -> Export

URL: https://instanceName.service-now.com/nav_to.do?uri=sys_ui_context_menu.do?sys_id=d1ad2f010a0a0b3e005c8b7fbd7c4e28

Existing Condition: !ListProperties.isRelatedList() && !ListProperties.isRefList()

New Condition: !ListProperties.isRelatedList() && !ListProperties.isRefList() && ListProperties.getTable() != 'incident'

find_real_file.png

Output: EXPORT Option is Disabled only for incident

find_real_file.png

OUTPUT: Export Show for Other tables

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader