logo

NJP

Create a Button to add attachment on a ticket

Import · Sep 18, 2019 · article

Hi All,

In case you are wondering how do I upload an attachment by clicking on a Button in a form please follow below steps:

1. Create UI Action:

Navigate to System Defination -> Click on UI Action Module -> Click on Create New

2. Fill all the details as below:

image

3. Now on onClick field put below string:

saveAttachment(g_form.getTableName(), g_form.getUniqueValue());

That's All !!

Now whenever you will click in the Upload file button on a form it will give you popup asking for an attachment.

image

Do mark it helpful if this will help you in anyway.

Regards,

Ajay

+91-9769949577

View original source

https://www.servicenow.com/community/itsm-articles/create-a-button-to-add-attachment-on-a-ticket/ta-p/2312607