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

Hi @Ankur Bawiskar 

Great thing! Thanks for that additional info! You know how to rock the API 🙂

You can also combine it, so that only users with the "itil" role are restricted to the Export on the "Incident" table, like shown in the screenshot below:

find_real_file.png

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

BR
Dirk

Hello, can I use the gs.getUser().isMemberOf('group name') in the condition?