The CreatorCon Call for Content is officially open! Get started here.

How to validate attachment file name and its format in Service Catalog?

Farooq
Kilo Contributor

Hello everyone,

I have a requirement to validate the attachment filename and the format, when submitting a request in Service Catalog. It should validate the name as, "filename.xlsx", if it's not the correct filename or format. It should give error message to user and user should not be able to submit a request without proper filename convention. How can I accomplish this using Catalog Client Script? Thank you

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You flagged Orlando, though who knows you might upgrade soon to Paris. If so, maybe the Variable type Attachment helps you on this?

You could use on that attributes for file size and extensions allowed.

https://docs.servicenow.com/bundle/paris-servicenow-platform/page/product/service-catalog-management...

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn