Common behavior
...
It is possible to define a dynamic variable multiple times based on different conditions (the order of the definition is relevant!):
Code Block | ||||
---|---|---|---|---|
| ||||
<dynamicvariables> <variable name="thechoice" value="fallback value" /> <variable name="thechoice" value="choice1" condition="cond1" /> <variable name="thechoice" value="choice2" condition="cond2" /> </dynamicvariables> |
...
In addition, if the user goes back through the panel sequence by pressing Previous, they must reach the first panel containing the variable before it will be unfrozen.
In this way, the variables can be reset to the proper values based on new conditions when the user navigates backward and forward multiple times and inputs new choices.
Global precedence for dynamic variable assignments
...