Change the alignment according to the length of the value in Advanced html PDF template

<#if item.custrecord_vr_svcord_item_lotnum?length > 3>
    <td colspan="7" style="border: 1px solid rgb(187, 187, 187);" align="left">
        ${item.custrecord_vr_svcord_item_lotnum}
    </td>
<#else>
    <td colspan="7" style="border: 1px solid rgb(187, 187, 187);" align="center">
        <#if item.custrecord_vr_svcord_item_lotnum?has_content>
            ${item.custrecord_vr_svcord_item_lotnum}
        <#else>
            NA
        </#if>
    </td>
</#if>


Leave a comment

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