Actions: Currency change
For basic intro into Actions, look at the concept page.
A trigger is set to act upon the currency.
The currency symbol will change with the selection.
A list variable "Currency" is defined.
The items in the list contain the currency options.
An action is defined (See Create Actions on how to do this)
First step is to define the trigger, that will initiate the action.
The trigger is initiated when
- the "Variable value changed", specified by the "Currency" variable,
- or when the document is loaded (to be sure we check when opening the document)
- or when a layout is changed
The script (action) executed upon the trigger
A series of if-then-else statements run through the possible options, and set the value of the Variable displayCurrency to the relevant currency symbol.
When the end-user changes the value of the variable Currency, the currency symbol used in the Smart Template is updated.