when user attaches an attachment of size more than 10 mb, it should show an alert message

CT00782576
Tera Contributor

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

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@CT00782576 

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

Attachment size pop up 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

 

@ChaithraTN 

I believe the question is asked by @CT00782576 so I am waiting for reply from that member

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

Thank you!

Yes it was the same requirement, I want to achieve it only for specific catalog items