Skip to main content
I'm trying to find an example of a conditional statement in VisualForce that will demonstrate how to place a table inside of an If Statement.

 

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 respuestas
  1. 2 oct 2012, 14:46
    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?
0/9000