How to add a custom attachment button in a catalog item

Arundhati
Tera Contributor

Hello Everyone,

 

Can someone please help me to create a custom button on a specific catalog item as the UI page is not supported in the recent version of ServiceNow

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Arundhati 

yes UI page/UI macros are not supported on Portal Side.

Why not use Attachment type variable so that user can upload file?

Why to use other customization?

Types of service catalog variables 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Hi Ankur,

Thanks a lot for your quick reply it works

GlideFather
Tera Patron

Hi @Arundhati,

 

there is a variable type Attachment or there's a section in the bottom of the page (if enabled for such an item).

 

You can add this variable to your catalog item(s) and even make it visible/hidden/mandatory under conditions stated in catalog ui policy if needed:

Screenshot 2026-03-05 at 08.32.03.png

 

Or every single catalog item has this option to hide attachment section under the Portal settings, this will be displayed always or never, no conditions available. If you want to have it only sometimes then hide it from here and use the method above.

Screenshot 2026-03-05 at 08.33.33.png

When Hide Attachment is false, then you will see this: 

 

Screenshot 2026-03-05 at 08.34.38.png

 

Why would you need any custom button? This is already working for you with no efforts..

_____
100 % GlideFather experience and 0 % generative AI