Formatting rules allow you to change the formats (text colourcolor, background colourcolor, style) and visibility of control depending upon a condition.
Rule Condition
This is the condition that the formatting will apply when it's true.
Code Block | ||
---|---|---|
| ||
return $Xml.EvaluateBoolean('Score > 10'); |
For this example, all formatting styles will apply when the "Score" value is greater than 10.
Hidden
If you choose Yes, it will make control invisible. (when the rule condition is true)
Disabled
If you choose Yes, it will make control readonlyread-only. (when the rule condition is true)
Bold
If chosen, it will make the text bold. (when the rule condition is true)
Italic
If chosen, it will make the text italic. (when the rule condition is true)
TextColor
Sets the colour color of the text that will be seen when the rule condition is true.
Background Color
Sets the background colour color of the text that will be seen when the rule condition is true.Available Objects
will be updated.