Reference
Document fields reference
Text in document layouts can include fields that are replaced with the quote's data when the document is produced, and conditions that print text only when they hold. For the designer itself, see Document designer.
Data fields
| Group | Write as | Examples |
|---|---|---|
| Quote | {{QUOTE.field}} | quoteNumber, quoteName, quoteDesc, quoteType, status, revision, currency, language, totalPrice, totalCost, marginPct, discountCode, businessOutcome, fxRate |
| Customer | {{customer.field}} | name, customerNumber |
| Addresses | {{customer_address.bill_to.field}}, ship_to, quote_to | city, country, state |
| Contact | {{customer_contact.field}} | name, email |
| Terms and compliance | {{customer_terms.field}}, {{customer_compliance.field}} | paymentTerms, incoterms, defaultCurrency, taxId, vatNumber |
| Custom fields | by their field name | fields marked for documents in Custom objects |
Insert Field in the designer lists the fields your workspace actually has; pick from there rather than typing them.
System and page values
| Field | Prints |
|---|---|
{{system.date}}, {{system.date_long}}, {{system.datetime}}, {{system.year}} | The date the document was produced, short or long, with the time, or the year. |
{{page.number}}, {{page.totalPages}} | The page number and the page count, for example Page {{page.number}} of {{page.totalPages}} in a footer. |
Conditions
Text between {{#if ...}} and {{/if}} prints only when the condition holds; {{#unless ...}} does the opposite:
{{#if customer.country == "US"}}Prices exclude sales tax.{{/if}}
{{#if facts.hasAnyDiscount}}Discounts applied as agreed.{{/if}}
{{#unless output.printTax}}Tax will be added at invoicing.{{/unless}}Conditions, and the visibility expressions of sections and blocks, can use:
- the data fields above, such as
customer.country; output.*, the quote's output settings:printTax,printTotals,printDiscounts,printSummary,printLogo,printImages,printMargin,printCost;facts.*, facts about the quote:lineItemCount,totalNet,totalDiscountAmount,averageDiscountPct,hasAnyDiscount,hasTaxContext, and the listscategories,productFamilies,productTagsandpartNumbers.
Values that come from the quote are always printed as text: markup or placeholders inside a customer name, for example, are never interpreted.
DocuSign anchors
For documents sent for e-signature, these anchors mark where DocuSign places its fields: {{company_signature}}, {{company_initial}}, {{company_date}}, {{company_name}}, {{company_title}}, and the same five for the customer, such as {{customer_signature}}. The Signature Block places them for you.