DocForgeDocForge
TemplatesGlossaryHow-toPricingDevelopers
Sign inStart free
DocForgeDocForge© 2026
PricingTemplatesGlossaryHow-toDevelopersTermsPrivacyRefundsContact

DocForge is a product of Rev Vision Ltd, registered in England & Wales (Company No. 14368830). Registered office: 86–90 Paul Street, London, England, United Kingdom, EC2A 4NE.

Glossary

Glossary

Variable substitution

Variable substitution replaces placeholders in a template with values from a record, row, or API payload.

Variable substitution is the moment a placeholder becomes real document content. A template might contain a marker such as customer_name, invoice_total, start_date, or signer_title. During rendering, the document system looks up the matching value in the current row or payload and inserts it into the output. The concept is simple, but the surrounding discipline determines whether generated documents are trustworthy.

Good substitution starts with clear names and a stable data contract. Template authors should know which variables are required, which are optional, and how missing values should appear during preview. Operators should avoid changing CSV headers without updating the template, and they should test values that stretch layout boundaries, such as long names or unusual currency amounts. More advanced workflows combine substitution with filters, conditional sections, and repeated blocks, but the foundation stays the same: every placeholder must point to a value the workflow can explain.

Questions, answered

What happens if a variable is missing?
A good workflow should make missing values obvious in preview or validation instead of silently producing a polished but incomplete document.

Related terms

  • Liquid template
  • Mail merge
  • PDF template engine

Related templates

  • Offer letter PDF template
  • NDA PDF template

Related how-tos

  • How to create a branded PDF template
  • How to send bulk offer letters