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

Template Attributes (How-to Guides)

Task-based guides for common template attribute formatting and layout needs.

Use these guides when you need a quick fix for a specific template attribute task.

Each child page focuses on one problem and includes practical examples you can reuse.

What are template attributes?

Template attributes are instructions added to S-Docs template syntax.

They change how data renders in the generated document.

They do not change the Salesforce record.

Common uses include:

  • formatting dates, numbers, currency, text, and checkbox output

  • replacing blanks or raw values with cleaner display text

  • controlling related list columns, numbering, and layout

How are they used in S-Docs?

Use template attributes while building the template body.

Add them directly to a merge field, related list column, or template tag.

S-Docs reads the attribute at render time and outputs the formatted result.

In practice, template builders use attributes to:

  • format single fields such as amounts, dates, and names

  • control repeating data in related lists and lineitemsSOQL

  • manage document output details such as fallback text, row numbering, and page breaks

Use template attributes when the data is already correct and you only need to change how it displays.

Format field values

Control document layout and specialized output

Need the basics first?

Last updated

Was this helpful?