Attachment UI action

brozi
ServiceNow Employee
ServiceNow Employee

I had a request to create UI action for attachments instead of using the lil paper clip icon.

I just grabbed the onclick script (using firebug, firebug is cool!!)


saveAttachment('incident', '');


and created a new client UI action with the same onclick code on the incident table.

Nothing special, but thought some of you could use that to truly make something cool...

16 REPLIES 16

CapaJC
ServiceNow Employee
ServiceNow Employee

See this page for the "no_attachment" attribute that you can put on that table's dictionary record:
http://wiki.service-now.com/index.php?title=Attributes


Not applicable

I'm trying to add the attach button to the Service Catalog - ie. I have a record producer that the users can fill out to report an IT or Web issue, the clippy icon is there but i want to add my Attach button, which table do i need to add this to?



ben.s

We trying to do the same thing. But so far no luck. How did you solve it?


cminarich
Kilo Expert

The following adds the sys_id of the form which is needed:



saveAttachment('incident', g_form.getUniqueValue());



ui action for attachments.png


I have this implemented and it works great


Community Alums
Not applicable

Hi Chris,


it worked!   little advance... how can i do it for multiple list records?


tried saveAttachment('incident', g_list.getChecked()); but attachment saves with one record only..



Please help here