Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add choose file button with upload in catalog form?

meera5
Tera Contributor

How to add choose file button with upload in catalog form?

 

Could you please help me on this

 

meera5_0-1690221854266.png

 Regards,

Yamini.

1 ACCEPTED SOLUTION

Manmohan K
Tera Sage

Hi @meera5 

 

You can create a attachment type variable as shown below

 

ManmohanK_0-1690223886956.png

 

It will show up as below in portal

 

ManmohanK_1-1690223953594.png

 

 

View solution in original post

6 REPLIES 6

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @meera5 

Greetings!

please refer below links:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0529497

https://www.servicenow.com/community/developer-forum/adding-attachment-as-a-variable-in-a-catalog-it...

please mark the answer as helpful and correct if your query is resolved.

 

Kind Regards,

Ravi Chandra

Manmohan K
Tera Sage

Hi @meera5 

 

You can create a attachment type variable as shown below

 

ManmohanK_0-1690223886956.png

 

It will show up as below in portal

 

ManmohanK_1-1690223953594.png

 

 

AmolJ
Tera Expert

How to remove or disable this Upload button based on a condition?

 

It's not possible to hide that button but We can hide that attach variable based on your condition 

We can achieve that variable hiding using Catalog UI Policies or Catalog Client Scripts when the condition depends on the values of the variables used in the catalog form.