Last modified: Dec 19, 2024

Sources

The different sources for options in Altinn Studio

When you set up an options-enabled component in Altinn Studio, it needs to be connected to a source of options. There are three different properties in the component configuration that can be used for this, depending on the use case:

PropertyUsage
optionsStatic options defined per-component
optionsIdEither code lists from json files, dynamic code lists or shared code lists
sourceCode lists from the data model

At least one such property has to be set in the component configuration. If multiple are set, the configuration precedence will be the opposite of the table above, so source will take precedence over optionsId, which will take precedence over options.