
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
10-11-2020 11:56 PM - edited 08-03-2024 06:48 AM
Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
Hi there,
On the Platform UI, by default on forms the paperclip icon is visible and attachments can be added to records. Though what if for certain forms you don't want users to have the possibility of adding attachments? For example on Requests, if your users are actually only working on the Requested Item level or the Catalog Tasks. Or on your custom application.
So how to hide/remove/disable the attachment paperclip? A short article on one of the nice dictionary attributes available out-of-the-box.
Attachment paperclip
To clarify, the attachment paperclip this is about:
No attachment attribute
You might already have noticed that some out-of-the-box forms don't show the attachment paperclip. So what do we have to do, to achieve this on our form? There's an out-of-the-box Dictionary Attribute "No attachment" which we need to add to the Collection Dictionary Entry.
Let's take Request [sc_request] as example.
- Select the Additional actions menu (hamburger icon) > Configure > Dictionary. This will open the Dictionary Entries list for sc_request.
- Select the Dictionary Entry of Type "Collection".
On the Dictionary Entry form, there's a related list "Attributes" [sys_schema_attribute_m2m]. Also, when selecting the Advanced view, there's an Attributes field available. Both are kept in sync by out-of-the-box Business Rules, so you only need to add the Attribute (with value true) to or the Attributes Related List or the Attributes field.
Result
After adding the Dictionary Attribute, reopen your Request form. The attachment paperclip will not be visible anymore. Also adding attachments through for example dragging and dropping attachments on the form is disabled with this.
---
And that's it actually. Hope you like this. If any questions or remarks, let me know!
C |
If this content helped you, I would appreciate it if you hit bookmark or mark it as helpful.
Interested in more Articles, Blogs, Videos, Podcasts, Share projects I shared/participated in? |
Kind regards,
Mark Roethof
ServiceNow Technical Consultant @ Quint Technology
1x ServiceNow Developer MVP
1x ServiceNow Community MVP
---
- 2,651 Views