How To: Conditionally Show/Hide Table Columns
Show or hide related list columns based on record conditions.
Problem
Solution
<column showcolumn="{{!Opportunity.StageName}} != 'Closed Won'">Expected_Close_Date__c</column><column showcolumn="({{!Opportunity.StageName}} == 'Prospecting' || {{!Opportunity.StageName}} == 'Qualification')">Next_Step__c</column><table>
<thead>
<tr>
<th>Product</th>
<th>Price</th>
<!--RENDER='{{!Opportunity.Type}}' == 'New Business'-->
<th>Discount</th>
<!--ENDRENDER-->
</tr>
</thead>
<tbody>
<!--{{!
<lineitems>
<listname>opportunitylineitems</listname>
<column>PricebookEntry.Product2.name</column>
<column prefix="$" format-number="#,###.##">unitprice</column>
<column showcolumn="{{!Opportunity.Type}} == 'New Business'" postfix="%">Discount</column>
</lineitems>
}}-->
</tbody>
</table>Operators You Can Use
Operator
Meaning
Example
Tips
PreviousPicklist Values: Replace Semicolon with CommaNextHow To: Display Different Values Based on Conditions
Last updated
Was this helpful?

