How to add Attachment button to Incident form?

Nani6
Mega Guru

Hi,

I have a requirement to add Attachment button to Incident form? Currently we have attachment icon on incident form which is not noticeable by many users, So we want to add Attachment button to forms.

Current:- Attach Icon

icon.png

I want something like this:

button.png

Any help is much appreciable................

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Shrikanth,



You can create a UI action on incident table as below


Name : Attachment


Client : true


On Click : saveAttachment(g_form.getTableName(), g_form.getUniqueValue());


Please find the below screenshot attached for reference.


Screen Shot 2015-09-23 at 4.25.21 PM.JPG



I hope this answers your question.


View solution in original post

9 REPLIES 9

yetesh_ch
ServiceNow Employee
ServiceNow Employee

Hi,


You have to write a global UI script. Check this:


Change the loading spinner image



Hope it helps!


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Shrikanth,



You can create a UI action on incident table as below


Name : Attachment


Client : true


On Click : saveAttachment(g_form.getTableName(), g_form.getUniqueValue());


Please find the below screenshot attached for reference.


Screen Shot 2015-09-23 at 4.25.21 PM.JPG



I hope this answers your question.


simple and oob...ideal solution.


-Anurag

Hi Pradeep,


It worked, Thank you very much.........