You need to sign in to do that
Don't have an account?
John Neff
Text color not rendering in PDF attachment - help!
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:
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!
Using visualforce inline styling tags, check the below sample