when user attaches an attachment of size more than 10 mb, it should show an alert message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 11:28 PM
Hi Experts,
I have requirement as below
When user attaches an attachment of size more than 10 mb, it should show an alert message as Attachment size is exceeded, it should be on RITM or catalog task table.
I want to implement this through client script.
Thanks,
Likhitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 11:46 PM
you cannot use client script for this
but please use before insert BR on sys_attachment and stop the insertion
Remember the info message won't be shown to user
check this link for solution using BR
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2025 01:35 AM
Hello @Ankur Bawiskar
Thanks for the reply, Yes we can achieve that via Business rules,
But in my case I want to do that only for few catalog items, so that I have asked is there any possibilities to achieve that through Client script
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2025 02:00 AM
I believe the question is asked by @CT00782576 so I am waiting for reply from that member
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2025 02:13 AM
Hi @Ankur Bawiskar
Thank you!
Yes it was the same requirement, I want to achieve it only for specific catalog items