This article explains what document properties are and provide examples of how they can be used with the binding syntax in smart templates.
Prerequisites
|
What are document properties?
Document properties is data about a document, also known as metadata.
Metadata is information about a document that is not part of the main content. It helps describe its content and characteristics. In e.g. a Word document, metadata can include details like the title, author, creation date and last modified date. This information helps to organize, search for, and manage documents more effectively in Document Management Systems (DMS) such as SharePoint.
If you need more fields than offered in document properties, you can add custom document property fields.
Important
|
Standard document properties
The following standard document property fields are available in Template Designer:
The fields can be used to fill the document property fields in Office (the example below shows Word):
NoteThe field names in the first column above do not always match the name in the Properties form. For example Tags (marked red) is called Keywords (marked green) in the Properties form. |
The names of the document property fields in Template Designer are (in most cases) the same as used in Office:
- Category: sets the Categories/Category property in the document.
- Creator: sets the Author property in the document ('John Johnson' in the image above).
- Description: sets the Comments property in the document.
- Keywords: sets the Tags/Keywords property in the document.
- Subject: sets the Subject property in the document.
- Title: sets the Title property in the document.
- Manager: sets the Manager property in the document ('Jane Doe' in the image above).
- Company: sets the Company property in the document.
- Hyperlink Base: sets the Hyperlink Base property in the document.
- Status: sets the Status property in the document.
Important
|
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 document properties for the smart template, following the steps below:
- In Template Designer, open the Advanced tab.
- Click + Add property.
- In the Type field select Document Property.
- In Property Name select the desired property name, for example Company.
- In Property value enter a static value (plain text without quotes) or a binding like
{{UserProfile.Office.Name}}
. - Click Add to document:
Document property examples
Example 1
Using Document Property to always use 'MyCompany' (without quotes) as the Company property.
Binding | Output |
---|---|
MyCompany | Company property = "MyCompany" |
Example 2
Using Document Property to set the Subject property of the document based on the value of the 'Subject' question originating from the response form.
Binding | Input | Output |
---|---|---|
{{Form.Subject}} | "Invitation" | Subject property = "Invitation" |
"Memo" | Subject property = "Memo" |
Example 3
Using Document Property to set the Category property of the document based on the value of the 'Category' dropdown question originating from the response form.
Binding | Input | Output |
---|---|---|
{{Form.Category.Name}} | "Contract" | Category property = "Contract" |
"Proposal" | Category property = "Proposal" |
Example 4
Using 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 | Input | Output |
---|---|---|
{{StringJoin(" ", "Memo", Form.Subject, UserProfile.Name)}} |
Subject = "Invitation" Name = "Jane Doe" |
Title property = "Memo Invitation Jane Doe" |
Subject = "Party" Name = "John Doe" |
Title property = "Memo Party John Doe" |
Important
|
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:
NoteThe default behavior of the 'Save As' dialog in Word:
|
Comments
Article is closed for comments.