Change font color of additional comments for incident

Gowtham29
Tera Expert

 

Hi Everyone,

I want to change the font color of the 'Additional comments' label and it's field value to Green in one particular notification. Pasted the screenshot for your reference. Which i highlighted in the below Post want to appear in Green color. Please help me how to achieve this and Thank you in advance

find_real_file.png

1 ACCEPTED SOLUTION

Devyani_6
Mega Guru

Hi Gowtham,

Please go through below steps:

1. Create notification email script as below:

find_real_file.png

template.print('<p><font size="3" color="#239B56" face="helvetica" >' + gs.getMessage('${comments}')+ '</font></p>');

2. In your notification, call this notification email script as mention below.

find_real_file.png

Please look at the expected below result:

find_real_file.png

Mark Correct/Helpful, based on impact of the response.

Regards,

Devyani

www.dxsherpa.com

View solution in original post

9 REPLIES 9

Harsh Vardhan
Giga Patron

adding one thread here. kindly have a look. hope it will help you. 

 

https://community.servicenow.com/community?id=community_question&sys_id=e3dea8fedb70df402d1efb651f96...

Am sorry for that Harshvardhan, this link also helped me a lot. Thank you so much for the quick response

amaradiswamy
Kilo Sage

Hi,

Do you want to change the color in activity history or in notification?

if you want to change in activity history, then you can write a before update BR with below script.

current.comments = "[code]<p style='color:green;'>"+current.comments +"</p>[/code]"

Hi, Thank you for the reply

I want to change it on the notification. In the notification i added last three comments to be visible to the end user in the  which they receive. Now i want to change the font color of those three comments from the notification to Green color. Hope you understand. Please help. Thank you.