Skip to main content
Good Evening, 

I have a Visualforce email template with a PDF attachment and there is some text that is conditionally displayed.  Depending on a field value, one of two values are displayed... and one of the values is/should be RED. 

This is working fine on the VF page, but not on the corresponding attachment.  Is there a way that I can make my text turn red?

Here is my code:

 

<apex:outputPanel rendered="{!If(relatedTo.Revision__c <>'TRUE',true,false)}">

<h2>ORDER/TRAFFIC INSTRUCTIONS</h2>

</apex:outputPanel>

<apex:outputPanel rendered="{!If(relatedTo.Revision__c ='TRUE',true,false)}">

<h2><font color="⌗FF0000">REVISED ORDER/TRAFFIC INSTRUCTIONS</font></h2>

</apex:outputPanel>

Thank you in advance for your help!

 
2 件の回答
  1. 2015年11月4日 19:30
    Thanks Karanaj, I tried this but it is still rendering as black in the PDF
0/9000