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

Not applicable

i've tried to use this little snippet to create a global UI action with no success.

Could someone detail how they have used this in a UI Action please?


brozi
ServiceNow Employee
ServiceNow Employee

The example i used above was the following:

Name: Attachment
Table: Incident
Active: true
Client: true
OnClick: saveAttachment('incident', '');
Form Button: true


Not applicable

this is what I needed... Thanks a bunch.


Not applicable

We're looking to remove the Attachment icon (the little clippy) from Change_task - is there a way to do this?

I've looked for the UI Action but attachments but i can only find the extra button that i made myself, nothing to do with the clip icon.