S-Docs: Conditional Text Colour
October 25, 2013 /
In S-Docs template, is it possible to have a text colour changed based on conditional logic. Yes, you can achieve by using the RENDER feature in the template code.
We have a picklist field with 3 values (see below) and each of these values will have its own colour scheme to be displayed based on the user selection.
On Budget = Green
At Risk = Orange
Over Budget = Red
In the template source code, we just need to include the combination of the RENDER logic and HTML code. Instead of only insert the field name, we will have the following:
On Budget At Risk Over Budget
Depending on which picklist is selected, the colour of the text will be displayed in the generated S-Docs template.