Based on the issue type i want to put attachment is mandatory in catalog item

kranthi2
Tera Expert

Hi,

Based on the issue type i want to put the  attachment is mandatory in catalog item. earlier the below code snippet is working fine.

But right now it is not working.

 

catalog item:

kranthi2_1-1705662998539.png

 

 

on Submit client script:

kranthi2_0-1705662959389.png

 

Ui policy:

kranthi2_2-1705663140368.png

 

 

Ui policy script:

kranthi2_3-1705663179995.png

 

error screenshot after submitted: incident is creating but it is showing as javascript console error 

 

instead of attachment mandatory.

 

kranthi2_4-1705663308984.png

 

please help me out how to achieve the same.

 

Thanks

 

 

 

 

 

 

 

 

 

 

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kranthi2 

 

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

 

Please have a look on same. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************