Inactivate the attachment icon once the change is no longer in new state.

DeIvory Gordon
Tera Guru

Hello, I am trying to inactivate the attachment icon once a change request is no longer in new state.  I researched the following, "To find the sys_id of the attachment icon in ServiceNow, you can right-click the filename of the attachment and select "Copy Sys ID"."  I right clicked on the filename of attachment, went to inspect, element and copies the sys-id of the attachment.  See screen shot of client script I created.  I am not sure If I am copying the sys-id of the attachment icon correctly. 

 

DeIvoryGordon_0-1749133921154.png

 

" href="sys_attachment.do sys_id=a2e4e584e0062290a9139c5ebffc08a4

 

 

 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @DeIvory Gordon 

no idea where you got this idea from, however there is an official API method to disable attachments in a client script.

g_form.disableAttachments();

Maik 

View solution in original post

1 REPLY 1

Maik Skoddow
Tera Patron
Tera Patron

Hi @DeIvory Gordon 

no idea where you got this idea from, however there is an official API method to disable attachments in a client script.

g_form.disableAttachments();

Maik