logo

NJP

ARTICLE - Custom Attachment Visibility Before Upload (UI16)

New article articles in ServiceNow Community · Feb 16, 2026 · article

Hi everyone 👋

 

I had a requirement where users need to choose the visibility of attachment(s) before uploading them.

 

Requirement

When a user uploads attachment(s) from a record (e.g., Catalog Task):

  • Ask the user who should see the attachment(s)

  • Based on the selection:

So essentially, we want to control where the attachment is inserted and therefore who can see it.

 

Why Not Native Attachment Button?

Out-of-the-box attachment button:

  • Immediately uploads to the current record

  • No way to intercept and ask for visibility before insert

So we had to override the behavior.

 

Project: https://developer.servicenow.com/connect.do#!/share/contents/9890958_custom_attachment_visibility_before_upload_ui16?t=PRODUCT_DETAILS

View original source

https://www.servicenow.com/community/itsm-forum/article-custom-attachment-visibility-before-upload-ui16/m-p/3489848#M554451