Changing Font Color of Mailto email template link

voic
Giga Expert

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

14 REPLIES 14

Here is how the outcome looks like:


TestHTMLColor.jpg


Thanks,


Berny


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>


Hi Caliro,



You could try this...



Service-now Test Dummy: Graphic Buttons for email approvals



Works well for me.



Cheers


R


Cool Thaks Russell! This is really cool stuff and looking after.


cheers!


Carlito


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