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
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
Color Themein the
- Enter the required binding in
- 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.
Add to document
Color Themesetting will be added to the smart template
Color Theme setting examples
Color Theme setting to apply the color theme based on the "BrandedTheme" dropdown question originating from the response form
|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|
Color Theme setting to apply the color theme based on the "BrandedTheme" form field originating from the user profile
|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|
Color Theme setting together with the DataSources function to always apply the same color theme.
|Output||The blue theme will be applied to the template|
Article is closed for comments.