Make attachment mandatory based on a Catalog Item variable choice field

chatsaurav19
Tera Contributor

Hi Team,

 

Can someone please let me know how to make attachment mandatory based on a catalog item choice field as shown below:::

 

Ex. If "Yes" then during submit attachment has to be mandatory

 

chatsaurav19_0-1695385764949.png

Regards,

Saurabh Chatterjee

1 REPLY 1

Vishal Birajdar
Giga Sage

Hi @chatsaurav19 

 

There is one article by Ankur , it might help you...!!

 

https://www.servicenow.com/community/developer-blog/verify-mandatory-attachments-count-on-catalog-it...

 

 

There is another way also -

You can hide OOTB attachment option.

Create new variable of Type "attachment"

Write onChange client script on choice field to hide that attachment variable.

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates