The element
element inside a supermodel XML allows us to specify the value of a vocabulary.
However is is possible to define the token
separately from the title
?
<field name="type-activiteit" type="zope.schema.Choice" easyform:validators="" easyform:THidden="">
<description>Het soort activiteit wordt enkel hier vermeld (niet in de titel). Zo kunnen bezoekers een selectie maken op de verschillende types (bv. alle lezingen).</description>
<title>Soort activiteit</title>
<required>True</required>
<values>
<element>|--Kies een optie--</element>
<element>Alumni-event</element>
<element>Academische zitting</element>
<element>Benefiet</element>
<element>Concert</element>
<element>Debat</element>
<element>Excursie</element>
<element>Filmvoorstelling</element>
<element>Happening</element>
<element>Workshop</element>
</values>
</field>
The reason is PFG -> EasyForm migration where collective.jsonify exports a vocabulary as
"fgVocabulary": [
"nl|Nederlands",
"fr|Frans",
"en|Engels",
"de|Duits",
"es|Spaans",
"it|Italiaans",
"ru|Russisch"
],
... and this has to be mapped somehow into the supermodel XML.