No attachment paperclip on form lay-out - ServiceNow Community
Mark Roethof
Tera Patron
Tera Patron

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:

 

find_real_file.png


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.

 

find_real_file.png


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.

 

find_real_file.png

---


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?
- Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

 

Kind regards,


Mark Roethof

ServiceNow Technical Consultant @ Quint Technology
1x ServiceNow Developer MVP

1x ServiceNow Community MVP

---

LinkedIn

Version history
Last update:
‎08-03-2024 06:48 AM
Updated by:
Contributors