The Now Platform® Washington DC release is live. Watch now!

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to hide attachment icon of catalog item in service portal

sumitjumale
Kilo Contributor

I want to hide attachment icon for specific catalog item in "Service Portal" view.

Note: I am able to hide on normal catalog item view but not in "Service Portal" The code which i have written is working on catalog item view but its not

working on "Service Portal" view even i have used "UI Type = Bothe" in client script.

find_real_file.png

Please suggest.

Regards,

Sumit

20 REPLIES 20

Chuck Tomasi
ServiceNow Employee
ServiceNow Employee

can you share the catalog client script you used to hide the attachments in the standard desktop UI?


Please find below screenshot.



find_real_file.png


Ankur Bawiskar
Tera Patron
Tera Patron

Hi Sumit,



If you have made it hidden using dom manipulation then it won't work in Service Portal and scoped app since service portal and scope doesn't allow dom script in client scripts.



As a part of workaround have your catalog client script to run in Global scope and then it should work fine.



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards
Ankur

yes. I have used DOM manipulation.


Please find below code. and suggest the solution.



find_real_file.png