Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2025 12:00 AM
then you can try to use DOM manipulation and extract the file size and throw error
I don't think you can validate the file size during catalog item submission.
1) search anchor tag with this class "get-attachment ng-binding ng-scope"
2) iterate and extract the file name which includes the size
3) do string manipulation and grab the size in either KB, Bytes or MB
4) then add and validate
Example: I added 3 files so it will have 3 anchor tag with that class, you can extract the text within that anchor tag and do the next steps
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader