Export functionality for form view

Poorva Bhawsar
Mega Sage

Hi Community,

 

I know that we can remove the export option for tables list view. How to restrict or remove export option from form view? I can see end users can export form data in pdf format.

 

Can we restrict/remove export option on form view as well?

 

Thanks

12 REPLIES 12

Najmuddin Mohd
Mega Sage

Hi @Poorva Bhawsar ,


For the form view, it is driven from UI Macro

 

Before : 

NajmuddinMohd_0-1735827570617.png



Navigate to :
----------.service-now.com/sys_ui_macro.do?sys_id=2ff1c56ca9fe3dba014340c4697b5088&sysparm_view=&sysparm_domain=null&sysparm_domain_scope=null

comment down 108 line.

NajmuddinMohd_1-1735827712464.png

 


After:

NajmuddinMohd_2-1735827783581.png

 


If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.

One more thing to add here, it is also removing 'View' option. So, instead of commenting, change the condition on 107 line, from true to false.

NajmuddinMohd_0-1735828786477.png



NajmuddinMohd_1-1735828849295.png



If the above information helps you, Kindly mark it as Helpful and Accept as a Solution.
Regards,
Najmuddin.

 

Hi Najmuddin,

 

Will it be only specific to a table? I only want this for a table form view not for all tables like incidents, changes etc. I only want this to remove for my custom table form view.

Hi @Poorva Bhawsar ,

You can check the below thread for adding conditions in the UI Macro.

https://www.servicenow.com/community/now-platform-forum/ui-macro-condition/m-p/1104978


If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.

Hi @Poorva Bhawsar ,

You can add the condition on the UI Macro, 
here I have added the Incident table. So, apart from Incident table it will be available for every table.
Replace it for you custom table.

NajmuddinMohd_0-1735912435230.png

 




If the solution helps you, Please mark it as Helpful and Accept the solution.
Regards,
Najmuddin.