For the complete documentation index, see llms.txt. This page is also available as Markdown.

Use Checkbox Symbols in DOCX Templates

Replace boolean values with Unicode checkbox characters when you need checkbox-style output in a DOCX template.

DOCX templates do not support the PDF checkbox image behavior.

If you use PDF checkbox attributes in DOCX, the output will not render as expected.

Use Unicode checkbox characters instead.

Use Unicode characters for checked and unchecked values

Replace true and false with these characters:

  • checked:

  • unchecked:

This works because DOCX outputs text, not PDF checkbox images.

Merge field example

Use replaceAll inside the DOCX merge field.

[{{!OBJECT.Checkbox_Field__c replaceAll="true, ☑,false, ☐"}}]

Use replaceAll on the related list column.

<column replaceAll="true, ☑,false, ☐">Checkbox_Field__c</column>

Notes

  • This approach is for DOCX templates.

  • PDF checkbox attributes still apply to PDF templates only.

  • The exact appearance depends on the font used in Word.

If the checkbox symbols do not display well, switch the Word font to one that supports Unicode checkbox characters clearly.

Last updated

Was this helpful?