Showing the whole table as empty/Not available if there is no content in the table

<table>

<tr>

<td>

<#if record.custrecord_vr_outbound3_contact1?has_content ||

record.custrecord_jj_outbound3_address_text?has_content ||

record.custrecord_vr_svcord_outbound3_shipcarr?has_content ||

record.custrecord_vr_svcord_outbound3_shipacct?has_content ||

record.custrecord_vr_outbound3_contact2?has_content ||

record.custrecord_vr_outbound3_contact3?has_content ||

record.custrecord_jj_return_facility_3?has_content >

<table style=”width: 100%; border: 1px solid rgb(187, 187, 187);padding-bottom:3px;padding-right:8px;height:233“>

<tr padding-bottom=”8px“><td background-color=”rgb(187, 187, 187) colspan=”9 style=”font-size:10.5px“>Return Shipping Information – Location 3</td>

<td colspan=”3 ></td></tr>

<tr padding-bottom=”3px“>

<td colspan=”3 align=”left color=”#4472C4 style=”font-size:10.5px;vertical-align: middle;“>Contact: </td>

<td colspan=”9 style=”border: 1px solid rgb(187, 187, 187);font-size:11px;line-height:13px; vertical-align=”middle >

<#if record.custrecord_vr_outbound3_contact1?has_content>

${record.custrecord_vr_outbound3_contact1}

<#else>

N/A

</#if>

</td>

</tr>

<tr padding-bottom=”3px height=”5%“>

<td colspan=”3 align=”left color=”#4472C4 style=”font-size:10.5px;“>Address: </td>

<td colspan=”9 style=”border: 1px solid rgb(187, 187, 187);font-size:11px; vertical-align=”middle“>

<#if record.custrecord_jj_outbound3_address_text?has_content>

${record.custrecord_jj_outbound3_address_text}

<#else>

N/A

</#if>

</td>

</tr>

<tr padding-bottom=”3px“>

<td colspan=”3 align=”left color=”#4472C4 style=”font-size:10.5px;vertical-align: middle;“>Phone: </td>

<td colspan=”9 style=”border: 1px solid rgb(187, 187, 187);font-size:11px;line-height:13px; vertical-align=”middle“>

<#if record.custrecord_vr_outbound3_contact1.phone?has_content>

${record.custrecord_vr_outbound3_contact1.phone}

<#else>

N/A

</#if>

</td>

</tr>

<tr padding-bottom=”3px“>

<td colspan=”3 align=”left color=”#4472C4 style=”font-size:10.5px;vertical-align: middle;“>Email: </td>

<td colspan=”9 style=”border: 1px solid rgb(187, 187, 187);font-size:11px;line-height:13px; vertical-align=”middle“>

<#if record.custrecord_vr_outbound3_contact1.email?has_content>

${record.custrecord_vr_outbound3_contact1.email}

<#else>

N/A

</#if>

</td>

</tr>

<tr padding-bottom=”3px“>

<td colspan=”3 align=”left color=”#4472C4 style=”font-size:10.5px;vertical-align: middle;“>Return via: </td>

<td colspan=”9 style=”border: 1px solid rgb(187, 187, 187);font-size:11px;line-height:13px; vertical-align=”middle“>

</td>

</tr>

<tr padding-bottom=”3px“>

<td colspan=”3 align=”left color=”#4472C4 style=”font-size:10.5px;vertical-align: middle;“>Acct #:</td>

<td colspan=”9 style=”border: 1px solid rgb(187, 187, 187);font-size:11px;line-height:13px; vertical-align=”middle >

<#if record.custrecord_vr_svcord_outbound3_shipacct?has_content>

${record.custrecord_vr_svcord_outbound3_shipacct}

<#else>

N/A

</#if>

</td>

</tr>

<tr padding-bottom=”3px“>

<td colspan=”3 align=”left color=”#4472C4 style=”font-size:10.5px;vertical-align: middle;“>Return speed: </td>

<td colspan=”3 style=”border: 1px solid rgb(187, 187, 187);font-size:10.5px;line-height:13px; vertical-align=”middle“></td>

<td colspan=”2 align=”right color=”#4472C4 style=”font-size:10.5px;vertical-align: middle;“>Insure for: </td>

<td colspan=”4 style=”border: 1px solid rgb(187, 187, 187);font-size:10.5px;line-height:13px; vertical-align=”middle“>

<#if record.custrecord_vr_outbound2_contact1?has_content &&

record.custrecord_jj_outbound2_address_text?has_content &&

record.custrecord_vr_svcord_outbound2_shipcarr?has_content &&

record.custrecord_vr_svcord_outbound2_shipacct?has_content &&

record.custrecord_vr_outbound2_contact2?has_content &&

record.custrecord_vr_outbound2_contact3?has_content &&

record.custrecord_jj_return_facility_2?has_content >

${record.custrecord_vr_svcord_insurefor}

<#else>

N/A

</#if>

</td>

</tr>

<tr padding-bottom=”3px“>

<td colspan=”3 align=”left color=”#4472C4 style=”font-size:10.5px;vertical-align: middle;“>Contact 2: </td>

<td colspan=”9 style=”border: 1px solid rgb(187, 187, 187);font-size:11px;line-height:13px; vertical-align=”middle >

<#if record.custrecord_vr_outbound3_contact2?has_content>

${record.custrecord_vr_outbound3_contact2}

<#else>

N/A

</#if>

</td>

</tr>

<tr padding-bottom=”3px“>

<td colspan=”3 align=”left color=”#4472C4 style=”font-size:10.5px;vertical-align: middle;“>Contact 3: </td>

<td colspan=”9 style=”border: 1px solid rgb(187, 187, 187);font-size:10.5px;line-height:13px; vertical-align=”middle >

<#if record.custrecord_vr_outbound3_contact3?has_content>

${record.custrecord_vr_outbound3_contact3}

<#else>

N/A

</#if>

</td>

</tr>

<tr>

<td colspan=”3 align=”left color=”#4472C4 style=”font-size:10.5px;vertical-align: middle;“>DEA No: </td>

<td colspan=”9 style=”border: 1px solid rgb(187, 187, 187);font-size:10.5px;line-height:13px; vertical-align=”middle >

<#if record.custrecord_jj_return_facility_3?has_content>

${record.custrecord_jj_return_facility_3}

<#else>

N/A

</#if>

</td>

</tr>

</table>

<#else>

<table style=”width: 100%; border: 1px solid rgb(187, 187, 187);“>

<tr><td background-color=”rgb(187, 187, 187) colspan=”9 style=”font-size:10.5px“>Return Shipping Information – Location 3</td></tr>

<tr>

<td colspan=”12 style=”align: center; font-size: 16px; padding: 6px;height:272px;vertical-align:middle“>Not available</td>

</tr>

</table>

</#if>

</td>

</tr>

</table>

Leave a comment

Your email address will not be published. Required fields are marked *