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
‎02-04-2025 01:23 PM - edited ‎02-04-2025 01:24 PM
The issue I've found with this solution and others is that it works great when the form is first loaded, but if you trigger the Mandatory check (any Mandatory field is empty when you hit Submit) the paperclip returns when the page 'reloads'.
UI Policy has the same issue as an onLoad Client Script.
Was trying to determine if I could leverage an onChange Client Script but that hasn't gotten me anywhere.
This 'Macro' variable fails the same way: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0717941
I haven't come up with a workaround as of yet - will update this post if I do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2024 10:56 PM
Simply open your catalog item under 'Maintain Item' module & under "Portal Settings', check 'Hide Attachment' -
It works 100% so shouldn't be an issue.
Do mark this answer as helpful or accepted if it helps. Thanks