- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2023 09:11 PM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2023 10:01 PM - edited ‎06-03-2023 10:03 PM
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:
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2023 10:01 PM - edited ‎06-03-2023 10:03 PM
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:
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2023 09:14 AM
That is perfect. Thank you so much 🙂