How to hide attachment icon of catalog item in service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 06:00 AM
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.
Please suggest.
Regards,
Sumit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2017 08:39 PM
Wow, this worked incredibly well. Thank you Anudeep!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2018 05:43 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2018 11:21 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2018 02:09 PM
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();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2018 01:04 PM
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!