- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 10:45 PM
HI,
Can you please suggest how to remove edit buton for only 1 record producer.
For this I am trying on load client script as follow, but it is not working can any suggest on this.
function onLoad() {
document.getElementById('header_add_attachment').style.display = 'none';
}
And I need to give "Add attachments" link/button on middle of form and when I click that link/button it shouls be able to upload 1 file and save it in "ATTACHMENTS" table.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 11:03 PM
Hi Radhika,
It should be
function onLoad() {
g_form.disableAttachments()
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 09:33 AM
HI Radhika,
Please refer below blog and adjust your solution accordingly.
Mandatory Attachments for a Service Catalogue Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2016 05:04 AM
Ha thanks That I have achived pradeep 🙂 Thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2016 08:50 AM
hi Radhi,
I have written ACL rule for making "remove" button in attachment visible for end user while adding attachment.
Even after submitting ticket, "Remove" button is getting visible.
Do you know how to hide "Remove" button after submiiting a ticket.
Thanks in advance.
Regards,
Prethi B

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2020 07:34 PM
I have tried both code, but its not working for me 😞
Please advice if any other approach to hide attachment icon.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2020 08:22 PM
Hi there,
This is really old topic you're responding on. Since Madrid, there's out-of-the-box functionality for this, no code needed. See this article:
Service Portal Catalog Items: Hide Attachment / Mandatory Attachment [Madrid]
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field