Flowweaver example · Closed list
Which municipality does your errand concern?
The field offers Statistics Sweden's municipality list — all 290, with the codes they are published under. Type two characters and it searches. Unlike the citizenship example, this field takes one answer: an errand belongs to one municipality.
The answer carries two parts. kommun.label is the name you read,
kommun.value is the code. The result prints both, so what an
answer with parts actually is can be read rather than explained — and those
are the spellings the {{var}} button inserts in the editor.
The rule branches on the code. Try Kumla — inside
the county — and Stockholm, which is not. A municipality code
begins with its county's two digits, so Örebro County's twelve municipalities
are the ones starting 18. The rule lists them rather than testing
the start of the code: no such comparison exists, and it should be born of a
need rather than of an example.
The names are proper nouns and the same in both languages. A county name could be argued — Örebro län against Örebro County — but inventing English county names beside an authority's Swedish ones would be our words presented as theirs.