Add a error message on send buttton of email client popup

Siddharth4
Tera Contributor

Hi,

 

I have a requirement to add a error message on email client popup, that comes up when fulfillers try to send the mail from ServiceNow,

As per the ServiceNow property the outbound email size should not exceed 25 MB. So I want to add a error message on the send button of email client popup so that if fulfiller try to send the attachment of size greater then 25 MB the confirmation message pops up.

 

I found this article but It's not working for me - 

https://www.servicenow.com/community/developer-forum/send-button-on-email-client/m-p/1546013/page/1

 

Siddharth4_0-1697787706802.png

 

Thanks

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Siddharth4 

what's the error if you use that solution?

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

Hi @Ankur Bawiskar , 

 

Thanks for the quick response. I created the same UI script and try to add the logs as well but I think the UI script is not running when I click on the send button.

If you have another approach to achieve this then please let me know. 

 

Thanks

@Siddharth4 

UI script is client side so logs won't work, alert will work

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

@Ankur Bawiskar 

 

I use console logs, But I think the UI script is not triggering.

 

Thanks