About this article
This article explains what the document properties are and provide examples of how they can be used with the binding syntax in smart templates.
- What are document properties?
- How to set a document property in a smart template
- Document properties examples
Prerequisites
|
What are document properties?
Document properties are data that sit on top of the document, they are also known as metadata. Document properties are often used for archiving purposes in Document Management Systems (DMS) such as SharePoint. These values can be set statically using plain text or dynamically using the binding syntax.
Standard document properties available
|
|
How to set a document property in a smart template
When building the template settings and properties, the Document Property
can be used to set the standard properties for the smart template. To set the Document Property
follow the steps below:
- In the Template Designer, navigate to the
Advanced
tab.
- Click
+ Add property
.
- Select
Document Property
in theType
dropdown.
- Select the desired property in the
Property Name
dropdown, for exampleCreator
.
- Enter a static value or the required binding in
Property Value
, for example{{UserProfile.Name}}
.
- Click
Add to document
.
|
Document properties examples
Example 1
Using Document Property
to always use 'MyCompany' (without quotes) as the Company
property.
Binding | MyCompany | |
Output | Company property = "MyCompany" |
Example 2
Using the Document Property
to set the Subject
property of the template based on the value of thet 'Subject' question originating from the response form.
Binding | {{Form.Subject}} | |
Input | "Invitation" | "Memo" |
Output | Subject property = "Invitation" | Subject property = "Memo" |
Example 3
Using the Document Property
to set the Category
property of the template based on the value of the 'Category' dropdown question originating from the response form.
Binding | {{Form.Category.Name}} | |
Input | "Contract" | "Proposal" |
Output | Category property = "Contract" | Category property = "Proposal" |
Example 4
Using the Document Property
together with the StringJoin() function to set the Title
property of the document by combining the text 'Memo', the value of the 'Subject' question originating from the response form and the 'Name' field originating from the user profile, separated by a space.
Binding | {{StringJoin(" ", "Memo", Form.Subject, UserProfile.Name)}} | |
Input |
Subject = "Invitation" Name = "Jane Doe" |
Subject = "Party" Name = "John Doe" |
Output | Title property = "Memo Invitation Jane Doe" | Title property = "Memo Party John Doe" |
|
In Template Designer the binding {{StringJoin(" ", "Memo", Form.Subject, UserProfile.Name)}}
is used:
When a document is created then in the Properties form and 'Save As' dialog the result looks like this:
|
Related articles
Comments
Article is closed for comments.