How To: Split Field Values into Individual Cells
Split field text into fixed-width cells for forms and character boxes.
Problem
Solution
<table>
<tr>
<td>{{!Opportunity.Product_Code__c toCells="5,codeCell"}}</td>
</tr>
</table>With Custom Styling
<style>
.codeCell {
border: 1px solid #000;
padding: 8px;
text-align: center;
width: 40px;
font-family: monospace;
font-size: 16px;
}
</style>
<table style="border-collapse: separate; border-spacing: 5px;">
<tr>
<td colspan="5"><strong>Enter Code:</strong></td>
</tr>
<tr>
<td>{{!Opportunity.Verification_Code__c toCells="5,codeCell"}}</td>
</tr>
</table>Practical Example: ZIP Code
Tips
PreviousHow To: Add Email Recipients from Related ListsNextHow To: Display Long URLs or Text Without Breaking Layout
Last updated
Was this helpful?

