- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2022 06:08 AM
I want to hide the PDF export of the UI macro context_form_header.
Is it possible to hide PDF (portrait) and PDF (landscape) by editing the XML of the UI macro?
Please tell me how to do it if possible.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 11:03 PM
Hi,
I won't recommend updating that OOB UI Macro
If you still require you can play around with it
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2022 10:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 11:03 PM
Hi,
I won't recommend updating that OOB UI Macro
If you still require you can play around with it
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2022 06:15 AM
Hi
You can open Context Menu [sys_ui_context_menu] table in menu System UI > UI Context Menus, filter by Name equal to Export and open the definition of Export menu.
By default the Condition of Export menu is
!ListProperties.isRelatedList() && !ListProperties.isRefList()
I suggest you to change the condition to
!ListProperties.isRelatedList() && !ListProperties.isRefList() && (ListProperties.getTable() != "sys_user" || gs.hasRole("admin"))
You should receive results, which you need: "Export" menu will be displayed in Users table only for admins. Other tables will hold "Export" menu.
Refer here
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2022 06:00 PM
Thank you
Unfortunately, I think the method you taught me is to disable the export of the context menu on the list screen.
I want to disable the export of the form screen after opening the record in the list screen.
