Last updated
Was this helpful?
Last updated
Was this helpful?
Schema Alias: Umbraco.CheckBoxList
UI Alias: Umb.PropertyEditorUi.CheckBoxList
Returns: IEnumerable<string>
Displays a list of preset values as a list of checkbox controls. The text saved is an IEnumerable collection of the text values.
Although the use of a GUID is preferable, you can also use the numeric ID to get the page:
If Modelsbuilder is enabled you can get the alias of the desired property without using a magic string:
You can use dictionary items to translate the options in a Checkbox List property editor in a multilingual setup. For more details, see the article.
See the example below to see how a value can be added or changed programmatically. To update a value of a property editor you need the .
The following example uses IPublishedSnapshotAccessor
, which is obsolete in Umbraco 15 and will be removed in a future version. For more information, see the Version specific upgrades article.