Variables in document templates: Difference between revisions

From Planfix
Jump to: navigation, search
(Created page with "{{#seo: |title=Variables in document templates |titlemode=append |keywords=Planfix, Variables, Pattern, document, documents, number formatting, date formatting |description=Va...")
 
 
(35 intermediate revisions by 2 users not shown)
Line 5: Line 5:
|description=Variables in document templates
|description=Variables in document templates
}}
}}
'''Variables''' are can play a large role in [[Document templates | document templates]]. When creating a document using a template, any variables used are replaced with the values stored in the object they are linked to. This makes document templates a convenient way to create documents and populate them with data from a specific contact, task, or data tag.
There are certain variables available for document templates, in addition to the [[Variables in task templates | variables used in task]] templates. A complete list of variables available can be found in the section '''Documents — Document templates''':
https://s.pfx.so/pf/2Q/6png44.jpg
*On the left-hand side of the window that opens when you click this link, you can see a list of available objects:
https://s.pfx.so/pf/h6/3L40Li.jpg
*After choosing an object, you'll be able to view the associated variable on the right-hand side of the window. These variables can be copied and then pasted in your document template:
https://s.pfx.so/pf/zk/E7CK8g.jpg
*Some variables can be formatted. If that's the case, you'll see information about how to format the variable below the variable name:
https://s.pfx.so/pf/EP/RYd1QO.jpg
*Formatting numbers are also possible. Under the name of the variable, information about formatting options can be found:
== Important ==
There are two different types of variables that can be used in document templates:
*Regular variables.
*Variables that [[Automatically adding rows to a document|automatically add rows]] to the final document.
== Variable encoding ==
Variables can be assigned different [[Encoding Variables|functions]] in Planfix.
== Variables ==
*[[Text formatting variable in Microsoft Word document templates]]
*[[Choosing a format for data tag totals]]
*[[Special list variables]]
*[[Formatting dates]]
*[[Writing out numbers as words]]
*[[Functions in document templates]]
== Go To ==
*[[Document templates]]
*[[Documents]]
*[[Feature Description]]

Latest revision as of 09:36, 6 November 2025

Variables are can play a large role in document templates. When creating a document using a template, any variables used are replaced with the values stored in the object they are linked to. This makes document templates a convenient way to create documents and populate them with data from a specific contact, task, or data tag.

There are certain variables available for document templates, in addition to the variables used in task templates. A complete list of variables available can be found in the section Documents — Document templates:

6png44.jpg

  • On the left-hand side of the window that opens when you click this link, you can see a list of available objects:

3L40Li.jpg

  • After choosing an object, you'll be able to view the associated variable on the right-hand side of the window. These variables can be copied and then pasted in your document template:

E7CK8g.jpg

  • Some variables can be formatted. If that's the case, you'll see information about how to format the variable below the variable name:

RYd1QO.jpg

  • Formatting numbers are also possible. Under the name of the variable, information about formatting options can be found:

Important

There are two different types of variables that can be used in document templates:

Variable encoding

Variables can be assigned different functions in Planfix.

Variables

Go To