Creation of a New Field for Attachments

cricket1
Kilo Explorer

Hi to everyone..I want to know about 2 functionalities.

1. Is it possible to remove the clippy like attachment icon present at the top right of a Change Request form. If its so how to do it?

2. After removing it, I want to add a new field for attachments in the Change Request form

Plz help me to accomplish both these tasks...Thanx..

5 REPLIES 5

CapaJC
ServiceNow Employee
ServiceNow Employee

Putting the "no_attachment" attribute on the change_request table will remove the attachment icon.

I don't know what 2) means, tho.


Thanx for ur reply... Lemme explain the second one clearly. In my Change Request form i want the 'attachments' to be as a field rather than a icon(the clippy one at the top).. The 'attachments' should be displayed like various fields such as Number, Assigned to, Configuration Item.. in my CR form..


The second part (having attachments as a field) is sort of possible in the existing system, as a reference field. The problem is, it won't be possible to upload new attachments, because the attachments table won't let you create a new record through any interface except through the attachments UI (accessed through the paper-clip). There might be a way around that limitation, but at the moment I can't think of how it might be done.

If it's still useful to you to have that as a reference field, so that people can attach existing attachments onto their record, here's what you do:

1) Put sys_properties.list into the application filter.
2) Find the property record glide.ui.permitted_tables, and add the table sys_attachment to the end of the list of tables.
3) Navigate to the change form, right click the header, and personalize the form
4) Create a new field called Attachment of type Reference and specify the table Attachment [sys_attachment]
5) Click on the magnifying glass next to Attachment to see the list of existing attachments.
6) Right click the list header and Personalize Dictionary
7) Find the field "file_name" and set the Display field to true.
😎 Personalize the list to add whatever values you want the end user to see (including file_name)

Now, you should have the ability to view existing attachments from a field on the form, and they should display the human-readable filename rather than the sys_ids.

Guy Yedwab
Service-now Documenation


Mark Stanger
Giga Sage

You could also add the Attachments as a related list at the bottom of the form. The only drawback to this is that you have to save the form before you could add any attachments.