
The only examples I can find are display text in the output. For example:
{! IF ( CONTAINS('salesforce.com','force.com'), 'Yep', 'Nah') }
I would like to display values for several fields within a table dependant on whether a field is not null. Any ideas are greatly appreciated.
-Adam
9 réponses

Foiled again.
<apex:pageBlock value="{!relatedTo.Active__c}" rendered="{!relatedTo.Active__c == true}"/>
</apex:pageBlock>
throws
Error: Unsupported attribute value in <apex:pageBlock> in LAF_Visualforce_Email at line 278 column 91
It looks like it's an issue trying to use pageblock in the email template. Crud: http://salesforce.stackexchange.com/questions/690/apexpageblock-in-visualforce-email-template
Any ideas on another workaround?