UI Attributes
Currency
The "Currency" UI Attribute is used to display a currency symbol before a quantitative variable (alternative). In MD, users can choose the type of symbol to selecting it from the dropdown menu. When a variable has the "Currency" UI Attribute, all variable alternatives have that currency symbol. When a variable alternative has its own currency symbol, it will overwrite the symbol from the variable.
Used on | Variable Variable alternative |
Possible values | String |
Possible domains | Quantitative enumeration Quantitative interval |
Allow html | No |
How to use
- Open the Properties of the variable and click the tab "UI Attributes.
- Click on "Add".
- Select the option "Currency" from the dropdown menu.
- Choose the desired value.
- Press the "Add" button to add the Currency to the UI Attributes list.
- Click on "Save Changes".
When you run the consultation in the Match Web Player you will see the Currency when the variable appears on the screen.
Example
An example of the Currency:
How much money did you spend on groceries?