Show or Hide Tables Based on Field Values
You can choose to hide or display the tables in the Output Document based on the value of the header field.
Consider a use-case: If the value of the Billing Type field in the Header is "Contract," then the part details table should be hidden in the Output Document, then the following sample code can be used:
.hide_Table {
{
{$F.IF($D.Work_Order.SVMXC__Billing_Type__c.label === "Contract","display: none;
","display: visibility;
")}
} }
where, hide_Table is the CSS class
<div class="part-details hide_Table">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
............................................
</table>
</div>
Was this helpful?