How To: Handle Null or Empty Values
Show fallback text when fields are null or empty.
Problem
Solution 1: nullprefix and nullpostfix
<column nullprefix="N/A">Optional_Field__c</column><p>Ship Date: {{!Opportunity.Ship_Date__c format-date="MM/dd/yyyy"}}</p><column nullprefix="TBD" format-date="MM/dd/yyyy">Ship_Date__c</column>Solution 2: Conditional Rendering
<!--{{!
<lineitemsSOQL>
<soql>SELECT Title FROM Contact WHERE AccountId = '{{!Account.Id}}'</soql>
<column render="RECORD.Title==null,No title provided,RECORD.Title"></column>
</lineitemsSOQL>
}}-->Solution 3: allprefix and allpostfix
Tips
PreviousHow To: Add Custom Headers and Footers to TablesNextHow To: Display Salesforce Encrypted Fields
Last updated
Was this helpful?

