Attachment Validation or Record Producer/Catalog Item

Prathamjeet Sin
Tera Contributor

I have a form with a mandatory field requiring users to upload an Excel (.xlsx) file. Is there a way to prevent users from uploading incorrect file types, ensuring they only submit .xlsx files either in the form view or prior to submission?
Thanks in advance for any assistance.

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

A way to go might be applying the variable type "attachment" and specifying the allowed types in the attributes field. For example:

allowed_extensions=xlsx

 

When selecting an incorrect type, it will automatically show:

1.png

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

View solution in original post

2 REPLIES 2

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

A way to go might be applying the variable type "attachment" and specifying the allowed types in the attributes field. For example:

allowed_extensions=xlsx

 

When selecting an incorrect type, it will automatically show:

1.png

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

That is perfect. Thank you so much 🙂