Information Classification: External Restricted.
See https://www.chili-publish.com/security
Common Document Actions
Showing and hiding Layers
Checkbox = FALSE (=turn off red, show green)
Show green box
Variable "Internal" On Change logic :
Result:
Changing a Color Scheme
Select color Ochre:
The color from the swatch list:
Variable "colour" "On Change" logic:
Result:
Changing the interface language
In multi-lingual documents, it can be useful to allow the end user to change the language of the document and the Editor interface through a Variable Input Form. The loaded language can also contain translations for the variables, which can be applied to the existing variables all at once
Switch from English to German language:
Variable "Language" "On Change" logic:
Result:
Tips and Tricks for more complex Actions
Less Code
Conditional Statements can be used to create blocks of logic depending on variable input. But you don't need to put the entire configuration inside each if statement. You can save a lot of time by first setting the general properties, and only setting specific ones inside each if statement.
For example: Rather than doing:
You can save some time and trouble (which will increase exponentially as the script gets more complex) by using:
Centralized Code
In cases where multiple variables need to trigger the same (or similar) logic, it can get very burdensome to manage that logic in the "On Change" action of all individual variables. You can save a lot of time by configuring a "Document Event Action" instead, and connect that to the "VariableValueChanged" event:
see more here: Document Action Triggers
All information on this page must be treated as External Restricted, or more strict. https://www.chili-publish.com/security