How to hide manage attachments button on record producer

Deepthi25
Giga Expert

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

1 ACCEPTED SOLUTION

Hi Radhika,



It should be


function onLoad() {


  g_form.disableAttachments()


}



View solution in original post

14 REPLIES 14

HI Radhika,



Please refer below blog and adjust your solution accordingly.


Mandatory Attachments for a Service Catalogue Item


Ha thanks That I have achived pradeep 🙂 Thanks a lot


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


Pooja Magadum1
Tera Expert

I have tried both code, but its not working for me 😞

Please advice if any other approach to hide attachment icon.

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

LinkedIn