Skip to main content
John Neff (Ring2Media) 님이 #Visualforce에 질문했습니다
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일 오후 7:30
    Thanks Karanaj, I tried this but it is still rendering as black in the PDF
0/9000