Advance PDF template to display N/A if the field contains no value

The client would like to print the pdf in such a manner that if a field contains value then it will be printed if all other field have value else we should print it as N/A

  <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>

Leave a comment

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