This is essentially a "case" statement inside the "switch" of the
For example, the following:
...will define an enumset called "yesno". That set can be referenced by
<enum key="n" value="No" />
<enum key="y" value="Yes" />
and allow it to "prettify" its values. If the value of
that field happens to be "n", the widget's
will retain the real
value of "n", but its label will be shown as "No". (The label is, for
example, the text between OPTION tags, the words next to a radio
button, etc.) Textfields and textareas can't make use of these tags.
Attributes are relevant to all templates.
Type of tag: Self-closing
Values: The value to check for
If the value of the field retrieved in the data is the "key"
Values: What to replace the label with
...the label will be replaced with the "value" attribute.