Mandatory attachment on Catalog item base on location

Vengeful
Mega Sage

I created a catalog item called Local Admin Access.

When a user is from these location 'K4 (ATK-K4)', 'K5 (ATK-K5)', 'K3 (ATK-K3)', 'K1 (ATK-K1)', 'ATK-K3', 'ATK-K4'

attachment should be mandatory. And the error message is "차상위자 승인 메일을 첨부해 주세요."

Vengeful_0-1733120864844.png

If not, the user can just submit the request.

3 REPLIES 3

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Vengeful 

for this on Submit Catalog Client Script has to be written. Refer below threads:

https://www.servicenow.com/community/itsm-articles/making-attachment-mandatory-for-a-catalog-item-de...

https://www.servicenow.com/community/developer-forum/mandatory-attachment-on-submit-based-on-catalog...

 

Please mark the answer as helpful and correct if helped.

Kind regards,

Ravi Chandra 

 

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hi @Vengeful ,

have you checked the isolate script checkbox?

 

since this is DOM manipulation, please check that box and try.

 

Please mark the answer as helpful and correct if helped.

Kind regards,

Ravi Chandra 

Hello @Ravi Chandra_K 

I created that onSubmit to the Catalog Client Script.

Not in Client script.