- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 08:25 AM - edited 12-07-2023 10:01 PM
Need to Display VIP in RED color in email subject, I have written the below email script but VIP is not showing in RED .
var subject;
if (current.reported_for.vip) {
subject = '<span style="color:red;">VIP</span>';
} else {
subject = "";
}
email.setSubject(subject + ' IN: Assigned Incident# ' + current.number);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 08:27 AM
Hi @Admin7267
I think it is not possible, because we cant do Subject line in different colour in outlook too.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 08:36 AM
Hi @Admin7267 ,
The email subject line is string type, not supporting any HTML/CSS setting because the email application like outlook, gmail etc. has subject line as string type. The mail server, processing the subject as text only.
You can check in outloook, when cursor in subject line , all the HTML based icons readonly.
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 08:27 AM
Hi @Admin7267
I think it is not possible, because we cant do Subject line in different colour in outlook too.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 08:36 AM
Hi @Admin7267 ,
The email subject line is string type, not supporting any HTML/CSS setting because the email application like outlook, gmail etc. has subject line as string type. The mail server, processing the subject as text only.
You can check in outloook, when cursor in subject line , all the HTML based icons readonly.
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution