Changing Font Color of Mailto email template link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2015 10:31 PM
Hi,
Was wondering if someone can assist.
On approval request notifications where there is an Approve or Reject Mailto Email Template links, they come up in the approval notification that looks like hyperlinks.
Is it possible to change the font color?
I have tried with plain HTML but it seems that it does not work.
<font size="3" style="color:green"> ${mailto:mailto.approval} </font>
<font size="3" style="color:red"> ${mailto:mailto.reject} </font>
Has anyone come across this requirement or something similar?
thanks!
Carlito
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2015 05:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2015 08:05 PM
Thanks Berny, I tried to integrate your script to mine but it did not work. I think I did it wrong and it didn't do well.
<script>https://code.jquery.com/jquery-1.10.2.js"></script>
<mail_script>printAttachments();</mail_script>
<table width="75%" style='display:block; background-color:#CCECFF;border-width:1px;border-style:solid;border-color:<mail_script>template.print(gs.getProperty('css.base.color'));</mail_script>'>
<tr><td>
<b>${sysapproval} requires your Authorisation. </b>
<mail_script>
if (!current.u_reason.nil())
template.print("Approval Reason: " + current.u_reason);
</mail_script>
<hr/>
1. Click approve or decline
<blockquote><font style="background-color: palegreen;" color='palegreen'>aa<font size='5' color='green'> ✓</font>${mailto:mailto.approval}aa</font></blockquote>
<blockquote><font style="background-color: pink;" color='pink'>aa<font size='5' color='red'>✗</font> ${mailto:mailto.rejection}aaa</font></blockquote>
<script>
$( "a:contains('DECLINE')" ).css( "color", "red" );
$( "a:contains('APPROVE')" ).css( "color", "green" );
</script>
2. Enter comments if desired
</td></tr>
</table>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2015 05:43 PM
Hi Caliro,
You could try this...
Service-now Test Dummy: Graphic Buttons for email approvals
Works well for me.
Cheers
R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2015 06:12 PM
Cool Thaks Russell! This is really cool stuff and looking after.
cheers!
Carlito
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2019 12:05 PM
Hi Russell,
I realize that this has been a little while ago for you but I'm wondering if you could share your "Service-now Test Dummy: Graphic Buttons for email approvals" blog post as I am attempting something similar and cannot access it.
Thanks in advance,
Sheldon