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

21 REPLIES 21

Wow, this worked incredibly well. Thank you Anudeep!!


hi Anudeep, This solution is also hiding the labels (variable names) in Service portal View. Did anyone face this issue while implementing this solution? Thanks, Kumar


Yea, actually I noticed that shortly after implementing. I was just so happy to not see the attachment icon, i didn't notice the missing labels right away. I then figured the attachment icon was the lesser of the 2 evils, and undid the changes.


I was able to hide just the attachment button with the following in the client controller:

 

angular.element(angular.element('sp-attachment-button')[0].parentElement).hide();

 

Zod
Giga Guru

No better news on this?

There need to be a standard way to just not show the attachment, as attachments do not really make a lot of sense in case of automated request processes (same as any freetext that need manual review) ...

Anyone found an more easy and flexible way to exclude the button on specific catalog items?

Thank you!