Change the color of Approval link in email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2025 06:38 AM
Hi All,
In approval email templates, I'm using ${sysapproval} to display the approval link, By default the link appears in blue , but i want to change it to green. Can someone please help me how to properly change the color of the approval link to green ?
Approve Request: ${mailto:mailto.approval}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2025 06:45 AM
You are going to have to write the HTML out yourself using either the Message HTML or an email script to return it. There are no easy OOB ways to do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2025 06:57 AM
not possible without scripting as by default anchor tag shows link in blue color.
you can use email script like this and include that email script in message html
${mail_script:mailScriptName}
Something like this
(function runMailScript(current, template, email, email_action, event) {
// Add your code here
var recordDisplayValue = current.sysapproval.getDisplayValue(); // field whose value you need to show in the link
var sysId = current.sys_id;
var tableName = current.getTableName(); // table name
var instance_name = gs.getProperty('glide.servlet.uri');
template.print('Click here to approve: <a style="color: green;" href="' + instance_name + tableName + '.do?sys_id="' + sysId + '">' + recordDisplayValue + '</a> to view the Task.');
})(current, template, email, email_action, event);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader