How To: Add Custom Headers and Footers to Tables
Add custom headers, section breaks, and summary rows to related list tables.
Problem
Solution 1: Custom Column Headers
<!--{{!
<lineitems>
<listname>opportunitylineitems</listname>
<column header="Product Name">PricebookEntry.Product2.name</column>
<column header="Qty">quantity</column>
<column header="Price Each" prefix="$" format-number="#,###.##">unitprice</column>
<column header="Line Total" prefix="$" format-number="#,###.##">totalprice</column>
</lineitems>
}}-->Solution 2: Summary Rows
<table>
<thead>
<tr>
<th>Product</th>
<th>Quantity</th>
<th>Price</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<!--{{!
<lineitems>
<listname>opportunitylineitems</listname>
<column>PricebookEntry.Product2.name</column>
<column>quantity</column>
<column prefix="$" format-number="#,###.##">unitprice</column>
<column prefix="$" format-number="#,###.##">totalprice</column>
</lineitems>
}}-->
<tr>
<td colspan="3" style="text-align: right;"><strong>TOTAL:</strong></td>
<td><strong>${{!Opportunity.Amount format-number="#,###.##"}}</strong></td>
</tr>
</tbody>
</table>Solution 3: Section Headers
Tips
Last updated
Was this helpful?

