Can we add text color in email mail scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2020 03:41 PM
I am trying to add color red to the text on the email script and not able to do it successfully.
The below mail script is for the 'Resolved notification- I have a Reject Solution button and then when clicked on the 'Reject Solution' button the text comes from the 'href' in the body (highlighted in yellow).
I am not sure how to change the text color like this text Reject Reason: [type the reason you are rejecting the resolution]
Any help is appreciated. please let me if there is an easy method.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2020 03:50 PM
You can change the font type in email scripts like below
Include your existing href code between <p></p> tags
for eg.:
template.print('<p style="font-size:12px; color:#000000; font-family:arial"><strong>');
template.print(PrintVa);
template.print('</strong></p>');
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2020 09:08 PM
Hi
Thank you for your response!
I have tried your suggestion like in the screenshot below-
I could have implemented it wrongly here in the email script, because I am getting a wrong error like the screenshot below-
When clicked on the 'Reject Solution' button I should be getting the text in the 'href' from the above code.
Could you please point to where am I doing it wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2020 09:17 PM
Hi,
do you want color for the text present in href
please explain
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2020 06:45 AM
Yes that's exactly what I am looking for.
I want the text after the "body=" in the href to be in red color.