How to hide PDF export

Sota Kimura1
Tera Contributor

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.

1 ACCEPTED SOLUTION

Hi,

I won't recommend updating that OOB UI Macro

If you still require you can play around with it

Regards
Ankur

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

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Steps

1) go to sys_ui_context_menu.LIST

2) Search with name = Export and table as global

3) In the related list you find PDF; open that

4) then within PDF you find different buttons for PDF (portrait) and PDF (landscape)

5) mark them active = false

find_real_file.png

find_real_file.png

Regards
Ankur

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

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.

@Sota Kimura 

You can only disable for list and not form form view

You cannot do this as the code behind this is not accessible to us.

Regards
Ankur

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

@Sota Kimura 

Hope you are doing good.

Did my reply answer your question?

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

Regards
Ankur

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