About this article
This article will explain what the color theme setting is and provide examples of how it can be utilized with the binding syntax in smart templates.
- What is the color theme setting?
- How to set the color theme setting in a smart template?
- Color theme examples
Prerequisites
|
What is the color theme setting?
The color theme allows controlling the colors available in Office in Design > Colors. The color theme setting can be set dynamically utilizing the binding syntax.
|
|
How to set the color theme setting in a smart template?
When building the template settings and properties, the Color Theme
setting can be utilized to set the colors for the smart template. Setting the Color Theme
setting can be achieved by following these steps:
- In the Template Designer, navigate to the
Advanced
tab - Click
Add property
- Select
Color Theme
in theType
dropdown - Enter the required binding in
Color Theme
- Optionally, set an additional option to the setting
Disable updates
: Disallow the setting from being updated after its generation when edited by the user through the document content updater. This option will not be visible if the document content updater is not enabled on the smart template.
- Click
Add to document
- The
Color Theme
setting will be added to the smart template
- The
|
Color Theme setting examples
Example 1
Using the Color Theme
setting to apply the color theme based on the "BrandedTheme" dropdown question originating from the response form
Binding | {{Form.BrandedTheme.ColorTheme}} | |
Input | Form.BrandedTheme= "Blue" | Form.BrandedTheme= "Green" |
Output | The blue theme will be applied to the template | The green theme will be applied to the template |
Example 2
Using the Color Theme
setting to apply the color theme based on the "BrandedTheme" form field originating from the user profile
Binding | {{UserProfile.Office.BrandedTheme.ColorTheme}} | |
Input | UserProfile.Office = "Berlin" | UserProfile.Office = "Paris" |
Output | The gray theme will be applied to the template | The blue theme will be applied to the template |
Example 3
Using the Color Theme
setting together with the DataSources[] function to always apply the same color theme.
Binding | {{DataSources.ColorThemes["Blue"].ColorTheme}} | |
Output | The blue theme will be applied to the template |
Related articles
Comments
0 comments
Article is closed for comments.